From 7be8184b2adbeb949137edacb4e053fa3ccc28f8 Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 25 May 2013 07:46:47 -0700 Subject: [PATCH] Redundant code. The if/else block makes more sense than the equivalent in two separate if's. --- src/switch_apr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;