]> err.no Git - util-linux/commitdiff
ddate: fix compiler warnings
authorKarel Zak <kzak@redhat.com>
Tue, 19 Jun 2007 14:42:07 +0000 (16:42 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Jun 2007 14:42:07 +0000 (16:42 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/ddate.c

index c98cd78494a1254b5afd030d7fe10523ab1bc1bb..1f488aa6e5932ee40678f9c2f2d3ec4e0e9d76c5 100644 (file)
@@ -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;