X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=784eb7310f063ee3a700055a17590e4d83a13786;hp=0c2a5439edf9aec4ab7492d0a83526e3326e3072;hb=ef97d579ea8974bfd42b9c5b0d5c9d1983e99448;hpb=51b6b52dc88beeb7873939cadfd61770e69259c3 diff --git a/misc.c b/misc.c index 0c2a543..784eb73 100644 --- 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