提交 0d8f954e authored 作者: William King's avatar William King

fixing commit a7108411 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.
上级 60bc7dae
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论