123
This commit is contained in:
parent
1ab12f2170
commit
872a510b6d
@ -96,7 +96,8 @@ int main(void) {
|
|||||||
free(line);
|
free(line);
|
||||||
|
|
||||||
if (lines_count == 0) {
|
if (lines_count == 0) {
|
||||||
printf("Chyba pri načítaní bázy pravidiel\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
|
printf("Chybna databaza\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +105,8 @@ int main(void) {
|
|||||||
int err = 0;
|
int err = 0;
|
||||||
Node *root = parse_node(lines, lines_count, &idx, &err);
|
Node *root = parse_node(lines, lines_count, &idx, &err);
|
||||||
if (err || root == NULL || idx != lines_count) {
|
if (err || root == NULL || idx != lines_count) {
|
||||||
printf("Chyba pri načítaní bázy pravidiel\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
|
printf("Chybna databaza\n");
|
||||||
for (int i = 0; i < lines_count; ++i) free(lines[i]);
|
for (int i = 0; i < lines_count; ++i) free(lines[i]);
|
||||||
free(lines);
|
free(lines);
|
||||||
if (root) free_tree(root);
|
if (root) free_tree(root);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user