Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make After removing an entry from missingFiles,
details: https://anonhg.NetBSD.org/src/rev/e3c693451de9
branches: trunk
changeset: 785650:e3c693451de9
user: sjg <sjg%NetBSD.org@localhost>
date: Sat Mar 23 23:39:47 2013 +0000
description:
After removing an entry from missingFiles,
set ln=NULL after Lst_Remove() to make it clear we won't use it
after this point.
diffstat:
usr.bin/make/meta.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 09b999c84461 -r e3c693451de9 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c Sat Mar 23 21:08:50 2013 +0000
+++ b/usr.bin/make/meta.c Sat Mar 23 23:39:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.27 2013/03/23 05:31:29 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.28 2013/03/23 23:39:47 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -1053,6 +1053,7 @@
char *tp = Lst_Datum(ln);
Lst_Remove(missingFiles, ln);
free(tp);
+ ln = NULL; /* we're done with it */
}
}
break;
Home |
Main Index |
Thread Index |
Old Index