diff --git a/cv7/program.c b/cv7/program.c index 44d7cff..4ba61f1 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -89,12 +89,13 @@ void count_items(struct tree* tree, int* count) { int main() { struct tree* root = load_tree(); + printf("Expert z bufetu to vie.\n"); + if (!root) { printf("Chybna databaza\n"); return 0; } - printf("Expert z bufetu to vie.\n"); int count = 0; count_items(root, &count);