From 2493484aac8d45b5a5abdb80f4db8c51db77bf6e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 16:45:23 +0200 Subject: [PATCH] modbus plugin: Make sure variable is initialized. This was introduced by the merge (09c6a320f3cb36b5dbb2c2ce43858f33be7acf9b). --- src/modbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modbus.c b/src/modbus.c index 25aa7e2e..f18b0afb 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -426,7 +426,7 @@ static int mb_read_data (mb_host_t *host, mb_slave_t *slave, /* {{{ */ uint16_t values[2]; int values_num; const data_set_t *ds; - int status; + int status = 0; if ((host == NULL) || (slave == NULL) || (data == NULL)) return (EINVAL); -- 2.30.2