pgrep: avoid SEGV when lightweight and list-full options are used together

do not segfault
This commit is contained in:
Eero Häkkinen 2014-09-06 00:35:16 +03:00
parent a0561fb4eb
commit 0f649e2cd2

View File

@ -629,7 +629,7 @@ static struct el * select_procs (int *num)
if (list == NULL)
exit (EXIT_FATAL);
}
if (opt_long) {
if (opt_long || opt_longlong) {
list[matches].str = xstrdup (cmdoutput);
list[matches++].num = subtask.XXXID;
} else {