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'
This commit is contained in:
parent
91c8c8a57b
commit
a710841123
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue