fixlet to pgrep/pkill
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sun, 30 Sep 2007 16:36:02 +0000 (16:36 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sun, 30 Sep 2007 16:36:02 +0000 (16:36 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20147 69ca8d6d-28ef-0310-b511-8ec308f3f277

procps/pgrep.c

index 2bedabf..c5747a1 100644 (file)
@@ -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);