diff options
author | Bjørn Mork <bjorn@mork.no> | 2019-10-20 14:51:57 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2019-10-20 14:51:57 +0200 |
commit | eb081c2f3032776f36b5b43b1b4189cd099343b9 (patch) | |
tree | b42d704cbf06e113cf0bfb97471d71977685d44e | |
parent | 3ebd07201a6122b98f391b09aca61f9d884cbf59 (diff) |
make sure "len" is initialized
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r-- | obinsectd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obinsectd.c b/obinsectd.c index 7a04f7f..4bb6c21 100644 --- a/obinsectd.c +++ b/obinsectd.c @@ -629,7 +629,7 @@ static json_object *cosem_object_new_int(unsigned char *raw, size_t intlen, bool */ static int parse_cosem(unsigned char *buf, size_t buflen, int lvl, json_object **ret) { - int i, len, n; + int i, n, len = 0; json_object *myobj; char fieldname[32]; /* "double-long-unsigned" is 20 bytes */ |