Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio gcc cannot always work out initialization here



details:   https://anonhg.NetBSD.org/src/rev/c1bc2522559c
branches:  trunk
changeset: 329885:c1bc2522559c
user:      justin <justin%NetBSD.org@localhost>
date:      Thu Jun 12 22:21:20 2014 +0000

description:
gcc cannot always work out initialization here

diffstat:

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

diffs (26 lines):

diff -r a02d03db7eb8 -r c1bc2522559c lib/libc/stdio/vfwscanf.c
--- a/lib/libc/stdio/vfwscanf.c Thu Jun 12 22:15:25 2014 +0000
+++ b/lib/libc/stdio/vfwscanf.c Thu Jun 12 22:21:20 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfwscanf.c,v 1.11 2013/09/23 12:41:37 pooka Exp $      */
+/*     $NetBSD: vfwscanf.c,v 1.12 2014/06/12 22:21:20 justin Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -42,7 +42,7 @@
 static char sccsid[] = "@(#)ftell.c    8.2 (Berkeley) 5/4/95";
 __FBSDID("$FreeBSD: src/lib/libc/stdio/vfwscanf.c,v 1.12 2004/05/02 20:13:29 obrien Exp $");
 #else
-__RCSID("$NetBSD: vfwscanf.c,v 1.11 2013/09/23 12:41:37 pooka Exp $");
+__RCSID("$NetBSD: vfwscanf.c,v 1.12 2014/06/12 22:21:20 justin Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -180,6 +180,7 @@
        base = 0;
        cclcompl = 0;
        mbp = NULL;
+       p = NULL; /* XXXgcc */
        for (;;) {
                c = *fmt++;
                if (c == 0)



Home | Main Index | Thread Index | Old Index