diff --git a/pgrep.c b/pgrep.c index 5093e3d1..6c70112b 100644 --- a/pgrep.c +++ b/pgrep.c @@ -492,8 +492,8 @@ static struct el * select_procs (int *num) regex_t *preg; pid_t myself = getpid(); struct el *list = NULL; - char cmdsearch[CMDSTRSIZE]; - char cmdoutput[CMDSTRSIZE]; + char cmdsearch[CMDSTRSIZE] = ""; + char cmdoutput[CMDSTRSIZE] = ""; char *task_cmdline; enum pids_fetch_type which;