Don't zero stuff twice

This commit is contained in:
NHOrus 2017-07-07 11:18:02 +03:00
parent 51b6b52dc8
commit ef97d579ea
2 changed files with 5 additions and 5 deletions

7
misc.c
View file

@ -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