summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-10-09 09:41:52 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-10-09 09:41:52 +0000
commita4d4ce0910552bac34bbc72a7f3184f199586d94 (patch)
tree24b9080a23208e44f67b6ae47818625b5a6ac808 /usr.bin/make
parent96dfd65da210e19d9fde069e6adc19b9db419785 (diff)
factor out identical code
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/job.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 2c52b5590c0..af8fdfa733d 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: job.c,v 1.98 2007/10/09 09:41:24 espie Exp $ */
+/* $OpenBSD: job.c,v 1.99 2007/10/09 09:41:51 espie Exp $ */
/* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */
/*
@@ -1309,12 +1309,9 @@ prepare_job(GNode *gn, int flags)
job->node);
Make_Update(job->node);
}
- free(job);
- return NULL;
- } else {
- free(job);
- return NULL;
}
+ free(job);
+ return NULL;
} else {
(void)fflush(job->cmdFILE);
return job;