Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Ensure emsg initialized



details:   https://anonhg.NetBSD.org/src/rev/d9d9c29efc80
branches:  trunk
changeset: 341141:d9d9c29efc80
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Oct 20 21:30:57 2015 +0000

description:
Ensure emsg initialized

diffstat:

 usr.bin/make/var.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r af59e26aba80 -r d9d9c29efc80 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Tue Oct 20 14:46:45 2015 +0000
+++ b/usr.bin/make/var.c        Tue Oct 20 21:30:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.198 2015/10/12 16:48:13 sjg Exp $    */
+/*     $NetBSD: var.c,v 1.199 2015/10/20 21:30:57 sjg Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.198 2015/10/12 16:48:13 sjg Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.199 2015/10/20 21:30:57 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.198 2015/10/12 16:48:13 sjg Exp $");
+__RCSID("$NetBSD: var.c,v 1.199 2015/10/20 21:30:57 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -2762,7 +2762,7 @@
                pattern.flags = 0;
 
                delim = '!';
-
+               emsg = NULL;
                cp = ++tstr;
                if ((pattern.rhs = VarGetPattern(ctxt, &parsestate, errnum,
                                                 &cp, delim,



Home | Main Index | Thread Index | Old Index