pgrep: fix compiler warning saved_start_time might be used uninitialized

A patch from Debian.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197342
Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Craig Small 2009-11-24 11:00:41 +11:00 committed by Craig Small
parent 6bc22a379f
commit 551d7e4114

View File

@ -435,7 +435,8 @@ static union el * select_procs (int *num)
preg = do_regcomp();
if (opt_newest) saved_start_time = 0ULL;
if (opt_oldest) saved_start_time = ~0ULL;
else saved_start_time = ~0ULL;
if (opt_newest) saved_pid = 0;
if (opt_oldest) saved_pid = INT_MAX;