From c67863fa4bc129948fa0bb9b850bcbfe5e68396a Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Thu, 1 Apr 2021 13:24:09 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du4/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ^^ --- du4/program.c | 1 + 1 file changed, 1 insertion(+) 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;