From 886f158cecab6e9351a016d8e9c2652dbf43fa38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vasi=C4=BE?= Date: Tue, 26 Apr 2022 19:58:13 +0200 Subject: [PATCH] domaca_uloha_7 --- du7/snake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du7/snake.c b/du7/snake.c index ead8adf..de14c16 100644 --- a/du7/snake.c +++ b/du7/snake.c @@ -2,7 +2,7 @@ #include struct snake* add_snake(struct snake* snake,int x,int y){ - struct snake* novyZaciatok; + struct snake* novyZaciatok = calloc(1, sizeof(struct snake)); novyZaciatok->x = x; novyZaciatok->y = y;