This commit is contained in:
Bohdan Kapliuk 2024-11-14 14:29:56 +02:00
parent 7e9817f094
commit a5c51c9f05

View File

@ -14,7 +14,7 @@ struct tree* read_tree(int* counter) {
char buffer[SIZE];
memset(buffer, 0, SIZE);
char* r = fgets(buffer, SIZE, stdin);
if(r == NULL){
if (buffer[0] == '\n'){
printf("Expert z bufetu to vie.\n");
printf("Chybna databaza\n");
return 0;