diff --git a/cv8/program.c b/cv8/program.c index d3b7bd9..758caa4 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -65,11 +65,11 @@ void ask(struct node* tree){ } while(r[0] == '\n'){ r = fgets(buff, SIZE, stdin); - } if(r == NULL){ puts("Koniec vstupu"); return; } + } if(r[0] == 'a' && tree->left != NULL){ tree = tree->left; ask(tree);