From: William King Date: Sat, 25 May 2013 14:46:47 +0000 (-0700) Subject: Redundant code. The if/else block makes more sense than the equivalent in two separat... X-Git-Tag: v1.2.13~323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d24d8eac01d321338bbb5946bd64018925ecfd;p=thirdparty%2Ffreeswitch.git Redundant code. The if/else block makes more sense than the equivalent in two separate if's. --- diff --git a/src/switch_apr.c b/src/switch_apr.c index aeb10185a9..789179820e 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -25,6 +25,7 @@ * * Michael Jerris * Eliot Gable + * William King * * 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; } - if (!name) { - continue; - } - if (name) { switch_copy_string(buf, name, len); fname = buf;