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; }