Source-Changes-HG archive

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

[src/netbsd-7]: src/usr.bin/make Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/a96f117a3d41
branches:  netbsd-7
changeset: 799388:a96f117a3d41
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Jun 01 19:24:47 2015 +0000

description:
Pull up following revision(s) (requested by manu in ticket #810):
        usr.bin/make/targ.c: revision 1.60
Fix warning about uninitialized variable
This warning gets fatal when including make(1) as a crunchgen(1) binary.

diffstat:

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

diffs (35 lines):

diff -r 571ea5294112 -r a96f117a3d41 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Mon Jun 01 19:22:31 2015 +0000
+++ b/usr.bin/make/targ.c       Mon Jun 01 19:24:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.57 2012/06/12 19:21:51 joerg Exp $  */
+/*     $NetBSD: targ.c,v 1.57.10.1 2015/06/01 19:24:47 snj Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: targ.c,v 1.57 2012/06/12 19:21:51 joerg Exp $";
+static char rcsid[] = "$NetBSD: targ.c,v 1.57.10.1 2015/06/01 19:24:47 snj Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)targ.c     8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: targ.c,v 1.57 2012/06/12 19:21:51 joerg Exp $");
+__RCSID("$NetBSD: targ.c,v 1.57.10.1 2015/06/01 19:24:47 snj Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -334,7 +334,7 @@
 Targ_FindNode(const char *name, int flags)
 {
     GNode         *gn;       /* node in that element */
-    Hash_Entry   *he;        /* New or used hash entry for node */
+    Hash_Entry   *he = NULL; /* New or used hash entry for node */
     Boolean      isNew;      /* Set TRUE if Hash_CreateEntry had to create */
                              /* an entry for the node */
 



Home | Main Index | Thread Index | Old Index