Initialize all fields of jlink, link types may not use calloc

This commit is contained in:
Andrew Johnson
2016-09-07 23:35:39 -05:00
parent b2012fdfb5
commit 58c78af4f9

View File

@@ -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 */