Redundant code. The if/else block makes more sense than the equivalent in two separate if's.
This commit is contained in:
parent
938699d0b6
commit
7be8184b2a
|
@ -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
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue