mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
[grep_proc] uninitialized value
This commit is contained in:
parent
0a2ab5d61d
commit
daf9c5d4d6
@ -237,7 +237,7 @@ void grep_proc::child_loop(void)
|
||||
void grep_proc::cleanup(void)
|
||||
{
|
||||
if (this->gp_child != -1 && this->gp_child != 0) {
|
||||
int status;
|
||||
int status = 0;
|
||||
|
||||
kill(this->gp_child, SIGTERM);
|
||||
while (waitpid(this->gp_child, &status, 0) < 0 && (errno == EINTR)) {
|
||||
|
Loading…
Reference in New Issue
Block a user