1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 11:42:09 +00:00

hekate: always init sublist on section creation

Even if there are no edge cases here
This commit is contained in:
CTCaer 2022-05-21 13:08:46 +03:00
parent 369df25cd3
commit 75b7d91abf

View file

@ -89,6 +89,9 @@ static ini_kip_sec_t *_ini_create_kip_section(link_t *dst, ini_kip_sec_t *ksec,
// Get hash section.
_htoa(ksec->hash, &name[i], 8, NULL);
// Initialize list.
list_init(&ksec->pts);
return ksec;
}
@ -122,7 +125,6 @@ int ini_patch_parse(link_t *dst, char *ini_path)
// Set patchset kip name and hash.
ksec = _ini_create_kip_section(dst, ksec, &lbuf[1]);
list_init(&ksec->pts);
}
else if (ksec && lbuf[0] == '.') // Extract key/value.
{