Module Name:    src
Committed By:   justin
Date:           Thu Jun 12 22:21:20 UTC 2014

Modified Files:
        src/lib/libc/stdio: vfwscanf.c

Log Message:
gcc cannot always work out initialization here


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/stdio/vfwscanf.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/stdio/vfwscanf.c
diff -u src/lib/libc/stdio/vfwscanf.c:1.11 src/lib/libc/stdio/vfwscanf.c:1.12
--- src/lib/libc/stdio/vfwscanf.c:1.11	Mon Sep 23 12:41:37 2013
+++ src/lib/libc/stdio/vfwscanf.c	Thu Jun 12 22:21:20 2014
@@ -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 @@ __vfwscanf_unlocked_l(FILE * __restrict 
 	base = 0;
 	cclcompl = 0;
 	mbp = NULL;
+	p = NULL; /* XXXgcc */
 	for (;;) {
 		c = *fmt++;
 		if (c == 0)

Reply via email to