]> diplodocus.org Git - nmh/commitdiff
Don't `else' after return. Simplify control flow.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Oct 2016 22:29:49 +0000 (23:29 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 20 Oct 2016 22:39:11 +0000 (23:39 +0100)
uip/replsbr.c

index 90252fe0da4ca366eeba22aa73e16606d2bb79aa..a9a659696ce147e52553e856d65079ff559148eb 100644 (file)
@@ -609,8 +609,7 @@ fix_addresses (char *str) {
 
     if (fixed_address) {
         return fixed_str;
 
     if (fixed_address) {
         return fixed_str;
-    } else {
-        free (fixed_str);
-        return str  ?  strdup (str)  :  NULL;
     }
     }
+    free (fixed_str);
+    return str  ?  strdup (str)  :  NULL;
 }
 }