Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio Appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/b5f62fb57451
branches:  trunk
changeset: 581966:b5f62fb57451
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jun 12 05:48:41 2005 +0000

description:
Appease gcc -Wuninitialized

diffstat:

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

diffs (28 lines):

diff -r 2d8804ee5bfb -r b5f62fb57451 lib/libc/stdio/vfwscanf.c
--- a/lib/libc/stdio/vfwscanf.c Sun Jun 12 05:45:38 2005 +0000
+++ b/lib/libc/stdio/vfwscanf.c Sun Jun 12 05:48:41 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfwscanf.c,v 1.1 2005/05/14 23:51:02 christos Exp $    */
+/*     $NetBSD: vfwscanf.c,v 1.2 2005/06/12 05:48:41 lukem 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.1 2005/05/14 23:51:02 christos Exp $");
+__RCSID("$NetBSD: vfwscanf.c,v 1.2 2005/06/12 05:48:41 lukem Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -158,6 +158,9 @@
        nconversions = 0;
        nread = 0;
        ccls = ccle = NULL;
+       base = 0;
+       cclcompl = 0;
+       mbp = NULL;
        for (;;) {
                c = *fmt++;
                if (c == 0)



Home | Main Index | Thread Index | Old Index