This commit is contained in:
Filip Chochol 2026-04-09 16:24:30 +02:00
parent 1098b82f8a
commit 5c3bf43da4

View File

@ -73,15 +73,17 @@ int main() {
struct strom* koren = nacitaj_strom(); struct strom* koren = nacitaj_strom();
if (koren == NULL) { if (koren == NULL) {
printf("Chyba: nepodarilo sa nacitat bazu pravidiel.\n"); printf("Expert z bufetu to vie.\n");
return 1; printf("Chybna databaza\n");
return 0;
} }
char sep[SIZE]; char sep[SIZE];
if (fgets(sep, SIZE, stdin) == NULL || sep[0] != '\n') { if (fgets(sep, SIZE, stdin) == NULL || sep[0] != '\n') {
printf("Chyba: nepodarilo sa nacitat bazu pravidiel.\n"); printf("Expert z bufetu to vie.\n");
printf("Chybna databaza\n");
znic_strom(koren); znic_strom(koren);
return 1; return 0;
} }
int pocet = spocitaj_listy(koren); int pocet = spocitaj_listy(koren);