develop.uap-core.de/git
/
uwplayer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5bc5f2
)
store copy of string in the settings map
author
Olaf Wintermann
<olaf.wintermann@gmail.com>
Fri, 15 Apr 2022 19:29:01 +0000
(21:29 +0200)
committer
Olaf Wintermann
<olaf.wintermann@gmail.com>
Fri, 15 Apr 2022 19:29:01 +0000
(21:29 +0200)
application/settings.c
patch
|
blob
|
history
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) {
- 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)
);
}
}
}