提交 a7108411 authored 作者: William King's avatar William King

This is probably what was intended. If the pointer 'path' is NULL, or if it is…

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