From 92624adf8170fb133b330fe02d8940a8bac86189 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 14 Mar 2017 19:41:13 -0400 Subject: [PATCH] Remove always-false condition from cf_item_parse --- src/main/conffile.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/conffile.c b/src/main/conffile.c index df78184..10c029a 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -1474,7 +1474,6 @@ int cf_item_parse(CONF_SECTION *cs, char const *name, unsigned int type, void *d if (!value) { if (required) { - is_required: cf_log_err(c_item, "Configuration item \"%s\" must have a value", name); return -1; @@ -1620,7 +1619,6 @@ int cf_item_parse(CONF_SECTION *cs, char const *name, unsigned int type, void *d } } - if (required && !value) goto is_required; if (cant_be_empty && (value[0] == '\0')) goto cant_be_empty; if (attribute) { -- 2.1.4