Module Name: src
Committed By: christos
Date: Sat Feb 27 16:20:06 UTC 2016
Modified Files:
src/usr.bin/make: meta.c
Log Message:
CID 1025009: Fix wrong code (NULL deref)
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/usr.bin/make/meta.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.51 src/usr.bin/make/meta.c:1.52
--- src/usr.bin/make/meta.c:1.51 Sat Feb 27 11:18:47 2016
+++ src/usr.bin/make/meta.c Sat Feb 27 11:20:06 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.51 2016/02/27 16:18:47 christos Exp $ */
+/* $NetBSD: meta.c,v 1.52 2016/02/27 16:20:06 christos Exp $ */
/*
* Implement 'meta' mode.
@@ -683,9 +683,9 @@ meta_job_error(Job *job, GNode *gn, int
if (job != NULL) {
pbm = &job->bm;
- } else {
if (!gn)
gn = job->node;
+ } else {
pbm = &Mybm;
}
if (pbm->mfp != NULL) {