From: Olaf Wintermann Date: Fri, 15 Apr 2022 19:29:01 +0000 (+0200) Subject: store copy of string in the settings map X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=11cea05f752938478d693e3cefd219dc8f7c1b74;p=uwplayer.git store copy of string in the settings map --- diff --git a/application/settings.c b/application/settings.c index aa1b976..ab2fb98 100644 --- a/application/settings.c +++ b/application/settings.c @@ -181,7 +181,7 @@ static void conf_load_global_settings(void) { for(size_t i=0;isize;i++) { JSONObjValue *gs = &s->values[i]; if(gs->value->type == JSON_STRING) { - ucx_map_cstr_put(uwp_settings, gs->name, gs->value->value.string.string); + ucx_map_cstr_put(uwp_settings, gs->name, strdup(gs->value->value.string.string)); } } }