From f7cdbe6414d79ce231cbe2ae79773b4b4051e68e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 25 May 2018 18:10:17 +0200 Subject: irmd: Fix comparison of uninitialized value The result value was not set in the case of an unknown message code. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/irmd/main.c b/src/irmd/main.c index 8e77a559..19bcc8c5 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2049,6 +2049,7 @@ static void * mainloop(void * o) break; default: log_err("Don't know that message code."); + result = -1; break; } -- cgit v1.2.3