aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2010-08-19 21:59:39 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2010-08-19 21:59:39 +0000
commit6edc7d2994cc761604564c06d476c206486e946a (patch)
tree3d3271b9e00f024a921e1d842990f3dc4ac6c63e
parent1ed622958d68921cdb919e9fdf97baa6517769ed (diff)
Notes
-rw-r--r--usr.bin/calendar/locale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/calendar/locale.c b/usr.bin/calendar/locale.c
index 1f9227a9ff15..70184289d342 100644
--- a/usr.bin/calendar/locale.c
+++ b/usr.bin/calendar/locale.c
@@ -76,7 +76,7 @@ setnnames(void)
int i, l;
struct tm tm;
- memset(&tm, '\0', sizeof(struct tm));
+ memset(&tm, 0, sizeof(struct tm));
for (i = 0; i < 7; i++) {
tm.tm_wday = i;
strftime(buf, sizeof(buf), "%a", &tm);
@@ -104,7 +104,7 @@ setnnames(void)
fndays[i].len = strlen(buf);
}
- memset(&tm, '\0', sizeof(struct tm));
+ memset(&tm, 0, sizeof(struct tm));
for (i = 0; i < 12; i++) {
tm.tm_mon = i;
strftime(buf, sizeof(buf), "%b", &tm);