From aad86321539e52b93f682ffd4b4b91e331a69213 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 2 Jun 2017 15:23:11 +0200 Subject: [PATCH] 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 --- conmon/conmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conmon/conmon.c b/conmon/conmon.c index 9ece926d..d0fd9a90 100644 --- a/conmon/conmon.c +++ b/conmon/conmon.c @@ -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)