mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user