summaryrefslogtreecommitdiff
path: root/usr.bin/xargs
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-09 19:29:50 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-09 19:29:50 +0000
commit2bf61905cc5d921791da2b5a5b7be26c74c26b1a (patch)
tree8032ac7bd0a6581b8e579529fb1c6a192d2852e7 /usr.bin/xargs
parent1785c97cf6451766a29800a9fd5b0bfe0f1986a7 (diff)
Remove NULL-checks before free(). ok tb@
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r--usr.bin/xargs/xargs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index 89d6c0b759d..6c1c31b1fea 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xargs.c,v 1.30 2015/10/10 15:52:30 deraadt Exp $ */
+/* $OpenBSD: xargs.c,v 1.31 2015/12/09 19:29:49 mmcc Exp $ */
/* $FreeBSD: xargs.c,v 1.51 2003/05/03 19:09:11 obrien Exp $ */
/*-
@@ -483,10 +483,8 @@ prerun(int argc, char *argv[])
/*
* Free the input line buffer, if we have one.
*/
- if (inpline != NULL) {
- free(inpline);
- inpline = NULL;
- }
+ free(inpline);
+ inpline = NULL;
}
static void