Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Initialize two variables for clang.
details: https://anonhg.NetBSD.org/src/rev/f9ce7250f269
branches: trunk
changeset: 779776:f9ce7250f269
user: wiz <wiz%NetBSD.org@localhost>
date: Sun Jun 17 20:48:27 2012 +0000
description:
Initialize two variables for clang.
diffstat:
bin/sh/parser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 8a51adcbcc06 -r f9ce7250f269 bin/sh/parser.c
--- a/bin/sh/parser.c Sun Jun 17 18:48:46 2012 +0000
+++ b/bin/sh/parser.c Sun Jun 17 20:48:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.c,v 1.82 2012/03/28 20:11:25 christos Exp $ */
+/* $NetBSD: parser.c,v 1.83 2012/06/17 20:48:27 wiz Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
#else
-__RCSID("$NetBSD: parser.c,v 1.82 2012/03/28 20:11:25 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.83 2012/06/17 20:48:27 wiz Exp $");
#endif
#endif /* not lint */
@@ -1362,9 +1362,9 @@
struct nodelist **nlpp;
int savepbq;
union node *n;
- char *volatile str;
+ char *volatile str = NULL;
struct jmploc jmploc;
- struct jmploc *volatile savehandler;
+ struct jmploc *volatile savehandler = NULL;
int savelen;
int saveprompt;
Home |
Main Index |
Thread Index |
Old Index