conmon: Silence uninitialized read compiler warning
This is not actually read uninitialized, its just that the compiler can't detect this, but we initilize it anyway to silence the compiler. Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
parent
fe6f1f4786
commit
f1b0f542e1
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@ int main(int argc, char *argv[])
|
|||
for (int i = 0; i < ready; i++) {
|
||||
if (evlist[i].events & EPOLLIN) {
|
||||
int masterfd = evlist[i].data.fd;
|
||||
stdpipe_t pipe;
|
||||
stdpipe_t pipe = NO_PIPE;
|
||||
if (masterfd == masterfd_stdout)
|
||||
pipe = STDOUT_PIPE;
|
||||
else if (masterfd == masterfd_stderr)
|
||||
|
|
Loading…
Reference in a new issue