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

Redundant code. The if/else block makes more sense than the equivalent in two separate if's.

上级 782480c4
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* *
* Michael Jerris <mike@jerris.com> * Michael Jerris <mike@jerris.com>
* Eliot Gable <egable@gmail.com> * Eliot Gable <egable@gmail.com>
* William King <william.king@quentustech.com>
* *
* switch_apr.c -- apr wrappers and extensions * switch_apr.c -- apr wrappers and extensions
* *
...@@ -597,10 +598,6 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu ...@@ -597,10 +598,6 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu
name = thedir->finfo.name; name = thedir->finfo.name;
} }
if (!name) {
continue;
}
if (name) { if (name) {
switch_copy_string(buf, name, len); switch_copy_string(buf, name, len);
fname = buf; fname = buf;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论