From 81cc3046b170197e7431d90fbdd6da1197524f3b Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 3 Dec 2020 15:04:15 +0100 Subject: [PATCH] telegrafista --- a5/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/a5/program.c b/a5/program.c index dbb9018..a175a96 100644 --- a/a5/program.c +++ b/a5/program.c @@ -128,11 +128,12 @@ int main (){ fgets(line, MAX, stdin); line[strlen(line)-1] = '\0'; if(line[0] == '\n'){ - break; + destroy(root); + return 0; } search(root, line); printf("\n"); printf("\n"); } - destroy(root); + //destroy(root); }