Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time Intialize dstname - the invariant combination ...



details:   https://anonhg.NetBSD.org/src/rev/510efed7c8fa
branches:  trunk
changeset: 801732:510efed7c8fa
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Aug 15 13:20:29 2014 +0000

description:
Intialize dstname - the invariant combination with dstlen is too complex
for gcc to follow.

diffstat:

 lib/libc/time/localtime.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9f50718e03e9 -r 510efed7c8fa lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Fri Aug 15 11:58:13 2014 +0000
+++ b/lib/libc/time/localtime.c Fri Aug 15 13:20:29 2014 +0000
@@ -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 @@
        char *                  cp;
        int                     load_result;
 
+       dstname = NULL; /* XXX gcc */
        stdname = name;
        if (lastditch) {
                stdlen = strlen(name);  /* length of standard zone name */



Home | Main Index | Thread Index | Old Index