From 6366290c7c272edefdcc161286daff4a30865527 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 16 Apr 2020 07:42:17 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu6/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/du6/program.c b/du6/program.c index a0c2a72..6157f4a 100644 --- a/du6/program.c +++ b/du6/program.c @@ -78,10 +78,10 @@ int main() } puts("Prijati studenti:"); for(int i = 0; i < SIZE; i++){ - if(pole_smernikov[i] == NULL){ - break; - } else{ + if(pole_smernikov[i] != NULL){ printf("%s\n", pole_smernikov[i]); + } else{ + } free(pole_smernikov[i]); }