summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/pgrep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/procps/pgrep.c b/procps/pgrep.c
index f08d6cc..e7fc5bd 100644
--- a/procps/pgrep.c
+++ b/procps/pgrep.c
@@ -118,6 +118,7 @@ int pgrep_main(int argc ATTRIBUTE_UNUSED, char **argv)
while (i) {
if (!cmd[i]) cmd[i] = ' ';
i--;
+ }
}
/* NB: OPT_INVERT is always 0 or 1 */
if ((regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */