From: Karel Zak Date: Tue, 19 Jun 2007 14:42:07 +0000 (+0200) Subject: ddate: fix compiler warnings X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b9cda90f45bdaeb7b0f7b05c40be3b1d8a94472;p=util-linux ddate: fix compiler warnings Signed-off-by: Karel Zak --- 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;