diff --git a/lib/lsof.c b/lib/lsof.c index cc60c7c4..045f37ae 100644 --- a/lib/lsof.c +++ b/lib/lsof.c @@ -926,6 +926,7 @@ enum lsof_error lsof_select_process_regex(struct lsof_context *ctx, char *x) { */ CmdRx[i].mc = 0; CmdRx[i].exp = xp; + xp = NULL; NCmdRxU++; /** Update selection flags for inclusion */