Don't zero stuff twice
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index 0c2a5439edf9aec4ab7492d0a83526e3326e3072..784eb7310f063ee3a700055a17590e4d83a13786 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -328,11 +328,12 @@ char* get_input()
 
         if (input == NULL) // Got EOF; return with it.
             return (input);
-        else if (input[0] == '#') { // Ignore comments.
+        if (input[0] == '#') { // Ignore comments.
             free(input);
             continue;
-        } else // We have a 'normal' line; leave the loop.
-            break;
+        }
+        // We have a 'normal' line; leave the loop.
+        break;
     }
 
     // Strip trailing newlines from the input