aboutsummaryrefslogtreecommitdiff
path: root/bin/pkill
diff options
context:
space:
mode:
authorRebecca Cran <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
committerRebecca Cran <brucec@FreeBSD.org>2010-02-08 21:23:48 +0000
commitc08dcaf147c68bdc4817123998ac369a275403a0 (patch)
treebdbafae76297f4a7d854718d62edf7adc0cfeb15 /bin/pkill
parent891acefe7c3953f0dee36ff6024024c4e9d4a680 (diff)
downloadsrc-c08dcaf147c68bdc4817123998ac369a275403a0.tar.gz
src-c08dcaf147c68bdc4817123998ac369a275403a0.zip
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
Notes
Notes: svn path=/head/; revision=203688
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 9105c8cb839d..153c90fbd6ed 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) {