summaryrefslogtreecommitdiff
path: root/res/res_parking.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_parking.c')
-rw-r--r--res/res_parking.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/res/res_parking.c b/res/res_parking.c
index 9a13db098..6efb79543 100644
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -1140,19 +1140,18 @@ static void link_configured_disable_marked_lots(void)
static int load_module(void)
{
- if (aco_info_init(&cfg_info)) {
- goto error;
- }
-
parking_lot_container = ao2_container_alloc_list(AO2_ALLOC_OPT_LOCK_MUTEX,
AO2_CONTAINER_ALLOC_OPT_DUPS_REJECT,
parking_lot_sort_fn,
NULL);
-
if (!parking_lot_container) {
goto error;
}
+ if (aco_info_init(&cfg_info)) {
+ goto error;
+ }
+
/* Global options */
aco_option_register(&cfg_info, "parkeddynamic", ACO_EXACT, global_options, "no", OPT_BOOL_T, 1, FLDSET(struct parking_global_config, parkeddynamic));