summaryrefslogtreecommitdiffstats
path: root/bin/pkill
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
committerbrucec <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
commita955ef657cbab406b88987e44fa2f14526782fb4 (patch)
treebdbafae76297f4a7d854718d62edf7adc0cfeb15 /bin/pkill
parent4601e94326c9fcba07f2d52e88860443d02bc8b9 (diff)
downloadFreeBSD-src-a955ef657cbab406b88987e44fa2f14526782fb4.zip
FreeBSD-src-a955ef657cbab406b88987e44fa2f14526782fb4.tar.gz
Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the -M option to be used without specifying -N.
PR: bin/138146 Approved by: rrs (mentor) MFC after: 3 days
Diffstat (limited to 'bin/pkill')
-rw-r--r--bin/pkill/pkill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pkill/pkill.c b/bin/pkill/pkill.c
index 9105c8c..153c90f 100644
--- a/bin/pkill/pkill.c
+++ b/bin/pkill/pkill.c
@@ -180,7 +180,8 @@ main(int argc, char **argv)
debug_opt = 0;
pidfile = NULL;
pidfilelock = 0;
- execf = coref = _PATH_DEVNULL;
+ execf = NULL;
+ coref = _PATH_DEVNULL;
while ((ch = getopt(argc, argv, "DF:G:ILM:N:P:SU:ad:fg:ij:lnos:t:u:vx")) != -1)
switch (ch) {
OpenPOWER on IntegriCloud