This commit is contained in:
mr314ot 2025-11-20 19:35:28 +01:00
parent f6246bb5ef
commit 55c069087a

View File

@ -58,17 +58,6 @@ Tree* read_tree() {
return NULL;
}
// kontrola prebytocnych potomkov
long pos = ftell(stdin);
if (fgets(buffer, SIZE, stdin)) {
// ak sa nacitalo ine nez prazdny riadok → chyba
if (strcmp(buffer, "\n") != 0) {
valid_db = 0;
}
fseek(stdin, pos, SEEK_SET);
}
return node;
}