Initialize all fields of jlink, link types may not use calloc
This commit is contained in:
1 parent
b2012fdfb5
commit
58c78af4f9
1 file changed
+2
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user