From 9a18acc846dec81a3385102f65f1a6f733fea69d Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Wed, 6 Nov 2024 07:28:32 +0000 Subject: [PATCH] Update cv7/program.c --- cv7/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv7/program.c b/cv7/program.c index cbe3fcb..2063890 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -14,7 +14,7 @@ Node* createNode(char *text) { Node *newNode = (Node*)malloc(sizeof(Node)); if (!newNode) { printf("Помилка виділення пам'яті.\n"); - exit(1); + exit(0); } newNode->question_or_answer = strdup(text); // Копіюємо текст у вузол newNode->yes_branch = NULL;