aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/lst.c
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2005-03-15 15:05:14 +0000
committerHartmut Brandt <harti@FreeBSD.org>2005-03-15 15:05:14 +0000
commitd735bf8813334302491b50a9df94376f1aac3f9a (patch)
tree1c8e7aa7931241151a8db237bb49c3fb184d60dd /usr.bin/make/lst.c
parent19015c15ed10cb3640f69ccec5299c04b904d4cd (diff)
downloadsrc-d735bf8813334302491b50a9df94376f1aac3f9a.tar.gz
src-d735bf8813334302491b50a9df94376f1aac3f9a.zip
modifier_M: instead of going through the string twice to compute the
size of the buffer we need, just allocate the possible maximum. Patch: 7.117 Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes
Notes: svn path=/head/; revision=143656
Diffstat (limited to 'usr.bin/make/lst.c')
-rw-r--r--usr.bin/make/lst.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/make/lst.c b/usr.bin/make/lst.c
index db4d83cb59b9..cb2523431769 100644
--- a/usr.bin/make/lst.c
+++ b/usr.bin/make/lst.c
@@ -475,6 +475,7 @@ Lst_Remove(Lst *list, LstNode *ln)
if (ln->useCount == 0) {
free(ln);
} else {
+printf("USE COUNT %d\n", ln->useCount);
ln->flags |= LN_DELETED;
}
}