diff options
author | Dimitri Staessens <[email protected]> | 2018-05-25 18:10:17 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-05-27 15:25:44 +0200 |
commit | f7cdbe6414d79ce231cbe2ae79773b4b4051e68e (patch) | |
tree | 0dd11fa57fb9ee205bb0d6f5b8273dc312454eea /src/irmd | |
parent | b11972e2920a0e7641c3a84fad56cd82c093ed0c (diff) | |
download | ouroboros-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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/main.c | 1 |
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; } |