diff --git a/cv7/program.c b/cv7/program.c index 60c0280..da58af4 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -15,7 +15,8 @@ struct tree* read_tree(int* counter) { memset(buffer, 0, SIZE); char* r = fgets(buffer, SIZE, stdin); if (buffer[0] == '\n') { - return NULL; + printf("Chybna databaza\n"); + return 0; } struct tree* tree = calloc(1, sizeof(struct tree)); tree->value = malloc(strlen(buffer) + 1);