]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
This is probably what was intended. If the pointer 'path' is NULL, or if it is not...
authorWilliam King <william.king@quentustech.com>
Thu, 13 Jun 2013 04:21:38 +0000 (21:21 -0700)
committerWilliam King <william.king@quentustech.com>
Thu, 13 Jun 2013 04:21:54 +0000 (21:21 -0700)
src/switch_config.c

index 974cbf6107108e8bf39e7112de5ad4600c5fd081..0c7c3852474b081d48d33c3cb7b64a5b3cea396b 100644 (file)
@@ -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;
        }