From b627afa7ef32a3f96d195d1ddeafda33bdd524fe Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 31 Jan 2024 11:25:43 +0600 Subject: [PATCH] fixed crash if nothing were found --- source/libublsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libublsettings.c b/source/libublsettings.c index 4f58841..1c2bf12 100644 --- a/source/libublsettings.c +++ b/source/libublsettings.c @@ -1146,8 +1146,8 @@ char *yon_config_get_section_for_key(char *key){ } void *yon_config_get_all_by_key(char *key, int *size){ + (*size)=0; check_config{ - (*size)=0; config_str ret_data=NULL; dictionary *dict = NULL; for_dictionaries(dict, (dictionary*)__yon__config__strings){