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:
William King 2013-06-12 21:21:38 -07:00
parent 91c8c8a57b
commit a710841123
1 changed files with 1 additions and 1 deletions

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