From: Denis Vlasenko Date: Sun, 30 Sep 2007 16:36:02 +0000 (-0000) Subject: fixlet to pgrep/pkill X-Git-Tag: 1_8_0~108 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5fb09656cadbec6a3bf609d95c7cccd7fc5c00a5;p=oweals%2Fbusybox.git fixlet to pgrep/pkill --- diff --git a/procps/pgrep.c b/procps/pgrep.c index 2bedabf72..c5747a163 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c @@ -121,7 +121,7 @@ int pgrep_main(int argc, char **argv) matched_pid = proc->pid; if (OPT_LAST) { free(cmd_last); - cmd_last = xstrdup(cmd_last); + cmd_last = xstrdup(cmd); continue; } act(proc->pid, cmd, signo, opt);