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
int ordinal;
};
#define DATE_INIT(date) date.mask = 0
#define DATE_INIT(date) memset(&(date), 0, sizeof(date))
#define DATE_SET(date, memb, m, val) \
do { date . memb = val; date.mask |= m; } while (0)
......