Module Name: src
Committed By: martin
Date: Fri Aug 15 13:20:29 UTC 2014
Modified Files:
src/lib/libc/time: localtime.c
Log Message:
Intialize dstname - the invariant combination with dstlen is too complex
for gcc to follow.
To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/lib/libc/time/localtime.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/time/localtime.c
diff -u src/lib/libc/time/localtime.c:1.83 src/lib/libc/time/localtime.c:1.84
--- src/lib/libc/time/localtime.c:1.83 Fri Aug 15 11:04:07 2014
+++ src/lib/libc/time/localtime.c Fri Aug 15 13:20:29 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: localtime.c,v 1.83 2014/08/15 11:04:07 christos Exp $ */
+/* $NetBSD: localtime.c,v 1.84 2014/08/15 13:20:29 martin Exp $ */
/*
** This file is in the public domain, so clarified as of
@@ -10,7 +10,7 @@
#if 0
static char elsieid[] = "@(#)localtime.c 8.17";
#else
-__RCSID("$NetBSD: localtime.c,v 1.83 2014/08/15 11:04:07 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.84 2014/08/15 13:20:29 martin Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -997,6 +997,7 @@ tzparse(timezone_t sp, const char *name,
char * cp;
int load_result;
+ dstname = NULL; /* XXX gcc */
stdname = name;
if (lastditch) {
stdlen = strlen(name); /* length of standard zone name */