From: William King Date: Thu, 13 Jun 2013 04:21:38 +0000 (-0700) Subject: This is probably what was intended. If the pointer 'path' is NULL, or if it is not... X-Git-Tag: v1.4.1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7108411233058511c59227617e446f28384dbd0;p=thirdparty%2Ffreeswitch.git This is probably what was intended. If the pointer 'path' is NULL, or if it is not NULL, then the first char should not be '\0' --- diff --git a/src/switch_config.c b/src/switch_config.c index 974cbf6107..0c7c385247 100644 --- a/src/switch_config.c +++ b/src/switch_config.c @@ -105,7 +105,7 @@ SWITCH_DECLARE(int) switch_config_next_pair(switch_config_t *cfg, char **var, ch *var = *val = NULL; - if (!cfg->path) { + if ( !cfg->path || (cfg->path && cfg->path[0] != '\0' )) { return 0; }