diff --git a/du4/program.c b/du4/program.c index 10e0b95..9c92661 100644 --- a/du4/program.c +++ b/du4/program.c @@ -16,6 +16,7 @@ int main(){ bool equals = false; for(int i = 0; fgets(input, 100, stdin) != NULL; i++){ + if(!input || !strcmp(input, "") || input[0] == EOF) break; counter = 0; operation = 0; equals = false;