From b5037cb0dcf97720f87a42966efe0c952caf23c6 Mon Sep 17 00:00:00 2001 From: Philip Correia Date: Fri, 5 Dec 2014 12:42:24 +0200 Subject: [PATCH] Fixing incorrect condition check --- res/res_parking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_parking.c b/res/res_parking.c index cbe880d..8c79ea2 100644 --- a/res/res_parking.c +++ b/res/res_parking.c @@ -1004,7 +1004,7 @@ static struct parking_lot *create_dynamic_lot_full(const char *name, struct ast_ cfg->parking_stop = dyn_end; } - if (parking_lot_cfg_create_extensions(cfg)) { + if (!parking_lot_cfg_create_extensions(cfg)) { ast_log(LOG_ERROR, "Extensions for dynamic parking lot '%s' could not be registered. Dynamic lot creation failed.\n", name); return NULL; } -- 1.9.1