From 06934701de8211d7d044dfdda4834a72809e59d1 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 15:39:50 +0100 Subject: [PATCH] SAD --- du3/program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/du3/program.c b/du3/program.c index b6ddca0..6550ae5 100644 --- a/du3/program.c +++ b/du3/program.c @@ -9,6 +9,7 @@ int main(){ char *endptr = NULL; float result = 0; int a; + memset(riadok, 0,SIZE); for(int i = 0; i < SIZE; ){ char* r = fgets(riadok,SIZE,stdin); if(*r != '\n'){