From 68b117c30456e5df4378269fa30c9d9940758610 Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 12 Nov 2024 19:24:07 +0000 Subject: [PATCH] Initializacia --- cv7/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);