From 6b9cda90f45bdaeb7b0f7b05c40be3b1d8a94472 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 19 Jun 2007 16:42:07 +0200 Subject: [PATCH] ddate: fix compiler warnings Signed-off-by: Karel Zak --- misc-utils/ddate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/misc-utils/ddate.c b/misc-utils/ddate.c index c98cd784..1f488aa6 100644 --- a/misc-utils/ddate.c +++ b/misc-utils/ddate.c @@ -295,6 +295,7 @@ struct disc_time makeday(int imonth,int iday,int iyear) /*i for input */ int cal[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int dayspast=0; + memset(&funkychickens,0,sizeof(funkychickens)); /* basic range checks */ if (imonth < 1 || imonth > 12) { funkychickens.season = -1; -- 2.39.5