]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Redundant code. The if/else block makes more sense than the equivalent in two separat...
authorWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 14:46:47 +0000 (07:46 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 14:46:47 +0000 (07:46 -0700)
src/switch_apr.c

index aeb10185a93d09590e051fa6f068b2eb7bbc07d4..789179820e7714b385ac84a7892d45746fa36e05 100644 (file)
@@ -25,6 +25,7 @@
  * 
  * Michael Jerris <mike@jerris.com>
  * Eliot Gable <egable@gmail.com>
+ * William King <william.king@quentustech.com>
  *
  * 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;