diff --git a/src/switch_config.c b/src/switch_config.c index 96999ad1e2..93fcfad7ad 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 || (cfg->path && cfg->path[0] != '\0' )) { + if ( !cfg->path[0] ){ return 0; }