Fix maybe-uninitialized warnings detected by LTO.

This commit is contained in:
Juan RP
2019-12-27 10:53:10 +01:00
parent 9775a20dbc
commit 0e1482917a
2 changed files with 5 additions and 4 deletions

View File

@ -263,7 +263,7 @@ parse_array_in_pkg_dictionary(FILE *f, xbps_dictionary_t plistd,
{
xbps_dictionary_keysym_t dksym;
xbps_object_t keyobj, sub_keyobj;
const char *tmpkeyname, *cfprop;
const char *tmpkeyname, *cfprop = NULL;
char *keyname;
for (unsigned int i = 0; i < xbps_array_count(allkeys); i++) {