mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
fixing commit a710841123 in switch_config
Previous commit actually broke the functionality since it was now returning if cfg->path[0] was not null. Also since cfg->path can never be null, this check can be simplified to only check the first index.
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 || (cfg->path && cfg->path[0] != '\0' )) {
|
||||
if ( !cfg->path[0] ){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user