projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd643d
)
modbus plugin: Make sure variable is initialized.
author
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 14:45:23 +0000
(16:45 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Thu, 14 Jan 2016 10:03:06 +0000
(11:03 +0100)
This was introduced by the merge
(
09c6a320f3cb36b5dbb2c2ce43858f33be7acf9b
).
src/modbus.c
patch
|
blob
|
history
diff --git
a/src/modbus.c
b/src/modbus.c
index
2cef4aa
..
b5d1e25
100644
(file)
--- a/
src/modbus.c
+++ b/
src/modbus.c
@@
-377,7
+377,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);