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 committed 2013-06-12 21:21:38 -07:00
1 parent 4fddabe543
commit 7360c1e898
1 file changed
+1 -1
+1 -1
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;
}