diff --git a/src/generator.c b/src/generator.c index c689e934..e0f4c14a 100644 --- a/src/generator.c +++ b/src/generator.c @@ -702,6 +702,7 @@ static bool parse_method(proxy_instance_t *proxi, const char *msg) bool ret = false; const char *buf; + memset(&err, 0, sizeof(err)); val = json_loads(msg, 0, &err); if (!val) { LOGWARNING("JSON decode failed(%d): %s", err.line, err.text);