This commit is contained in:
Deinerovych 2024-11-08 14:01:39 +01:00
parent caf879232d
commit f89ee06d80

View File

@ -101,6 +101,12 @@ int main() {
line_count++; line_count++;
} }
if (line_count == 0) {
printf("Expert z bufetu to vie.\n");
printf("Chybna databaza\n");
return 0;
}
int index = 0; int index = 0;
Node *root = parse_knowledge_base(lines, &index, line_count); Node *root = parse_knowledge_base(lines, &index, line_count);