cv7
This commit is contained in:
parent
2adc3595d9
commit
8d15749214
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user