From fb83ea7a4eaf6bc1b227c361256ec828aff154a2 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 3 Dec 2020 15:09:10 +0100 Subject: [PATCH] telegrafista --- a5/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/a5/program.c b/a5/program.c index a175a96..bb3a484 100644 --- a/a5/program.c +++ b/a5/program.c @@ -127,7 +127,7 @@ int main (){ char line[MAX]; fgets(line, MAX, stdin); line[strlen(line)-1] = '\0'; - if(line[0] == '\n'){ + if(line[0] == '\0'){ destroy(root); return 0; } @@ -135,5 +135,7 @@ int main (){ printf("\n"); printf("\n"); } + //destroy(root); + return 0; }