develop.uap-core.de/git
/
uwplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
store copy of string in the settings map
[uwplayer.git]
/
application
/
settings.c
diff --git
a/application/settings.c
b/application/settings.c
index
aa1b976
..
ab2fb98
100644
(file)
--- a/
application/settings.c
+++ b/
application/settings.c
@@
-181,7
+181,7
@@
static void conf_load_global_settings(void) {
for(size_t i=0;i<s->size;i++) {
JSONObjValue *gs = &s->values[i];
if(gs->value->type == JSON_STRING) {
for(size_t i=0;i<s->size;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)
);
}
}
}
}
}
}