summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-05-25 18:10:17 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2018-05-27 15:25:44 +0200
commitf7cdbe6414d79ce231cbe2ae79773b4b4051e68e (patch)
tree0dd11fa57fb9ee205bb0d6f5b8273dc312454eea
parentb11972e2920a0e7641c3a84fad56cd82c093ed0c (diff)
downloadouroboros-f7cdbe6414d79ce231cbe2ae79773b4b4051e68e.tar.gz
ouroboros-f7cdbe6414d79ce231cbe2ae79773b4b4051e68e.zip
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 <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
-rw-r--r--src/irmd/main.c1
1 files changed, 1 insertions, 0 deletions
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;
}