From 58c78af4f940d188ccb6a9d26d3ff754135f4cf5 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 7 Sep 2016 23:35:39 -0500 Subject: [PATCH] Initialize all fields of jlink, link types may not use calloc --- src/ioc/db/dbJLink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ioc/db/dbJLink.c b/src/ioc/db/dbJLink.c index a5939a6d5..c350a5155 100644 --- a/src/ioc/db/dbJLink.c +++ b/src/ioc/db/dbJLink.c @@ -255,6 +255,8 @@ static int dbjl_map_key(void *ctx, const unsigned char *key, unsigned len) { return dbjl_return(parser, jlif_stop); } pjlink->pif = pjlif; + pjlink->parent = NULL; + pjlink->parseDepth = 0; if (parser->pjlink) { /* We're starting a child link, save its parent */