diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-11 11:59:41 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-05-11 11:59:41 +0000 |
commit | 3538f5cfb901e9e85f243808953819295267d6aa (patch) | |
tree | 15dab79bc71ff8a8fb7aaf2668ff6025d5cfd331 /mailbox | |
parent | 7b28d418f309649e4978a00de1aaa26432186c4b (diff) | |
download | mailutils-3538f5cfb901e9e85f243808953819295267d6aa.tar.gz mailutils-3538f5cfb901e9e85f243808953819295267d6aa.tar.bz2 |
(DATE_INIT): Bugfix. Several fields in
struct pd_date are used regardless of .mask, so it is better to
zero out the entire structure.
Diffstat (limited to 'mailbox')
-rw-r--r-- | mailbox/parsedate.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mailbox/parsedate.y b/mailbox/parsedate.y index dabf56f20..eac4e6b49 100644 --- a/mailbox/parsedate.y +++ b/mailbox/parsedate.y @@ -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) |