Commit 3538f5cf 3538f5cfb901e9e85f243808953819295267d6aa by Sergey Poznyakoff

(DATE_INIT): Bugfix. Several fields in

struct pd_date are used regardless of .mask, so it is better to
zero out the entire structure.
1 parent 7b28d418
...@@ -128,7 +128,7 @@ struct pd_date ...@@ -128,7 +128,7 @@ struct pd_date
128 int ordinal; 128 int ordinal;
129 }; 129 };
130 130
131 #define DATE_INIT(date) date.mask = 0 131 #define DATE_INIT(date) memset(&(date), 0, sizeof(date))
132 #define DATE_SET(date, memb, m, val) \ 132 #define DATE_SET(date, memb, m, val) \
133 do { date . memb = val; date.mask |= m; } while (0) 133 do { date . memb = val; date.mask |= m; } while (0)
134 134
......