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:
parent
6bc22a379f
commit
551d7e4114
3
pgrep.c
3
pgrep.c
@ -435,7 +435,8 @@ static union el * select_procs (int *num)
|
|||||||
preg = do_regcomp();
|
preg = do_regcomp();
|
||||||
|
|
||||||
if (opt_newest) saved_start_time = 0ULL;
|
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_newest) saved_pid = 0;
|
||||||
if (opt_oldest) saved_pid = INT_MAX;
|
if (opt_oldest) saved_pid = INT_MAX;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user