aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-05-04 09:12:43 +0200
committerBjørn Mork <bjorn@mork.no>2019-05-04 09:12:43 +0200
commitcb5aa5aea8fd653e2c7f6a11c8cdae310f92e0a8 (patch)
treeada9ce6818ef3ab2e57166dd6e41829fad46c7ba
parent8f35469299d48bffed51adcfb6a08e4c7740e7ee (diff)
initialize mykey
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--obinsectd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/obinsectd.c b/obinsectd.c
index 18108d1..b3e8cac 100644
--- a/obinsectd.c
+++ b/obinsectd.c
@@ -1035,7 +1035,7 @@ static json_object *normalize(json_object *json)
json_object_object_add(ret, "1-0:1.7.0.255", json_object_get();
*/
} else {
- const char *mykey;
+ const char *mykey = NULL;
const char *listname = NULL;
size_t n = json_object_object_length(body);
int i = 0;
@@ -1142,7 +1142,7 @@ skipframe:
/* got a complete and verified frame - parse the payload */
if (parse_payload(payload, framelen - (payload - hdlc + 1), json))
- debug("JSON: %s\n", json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY));
+ ;;// debug("JSON: %s\n", json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY));
debug("normalized: %s\n", json_object_to_json_string_ext(normalize(json), JSON_C_TO_STRING_PRETTY));