summaryrefslogtreecommitdiff
path: root/mailbox
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-05-11 11:59:41 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-05-11 11:59:41 +0000
commit3538f5cfb901e9e85f243808953819295267d6aa (patch)
tree15dab79bc71ff8a8fb7aaf2668ff6025d5cfd331 /mailbox
parent7b28d418f309649e4978a00de1aaa26432186c4b (diff)
downloadmailutils-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.y2
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)

Return to:

Send suggestions and report system problems to the System administrator.