aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-02-17 21:13:24 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-02-17 21:17:59 +0100
commit881fddc7a3b5f8af5c7434b12fce3cfdd4306fec (patch)
tree31566b40f6003caed6fc2e093c77435b9eb71850
parentelm: fix test case for elm_web (diff)
downloadefl-881fddc7a3b5f8af5c7434b12fce3cfdd4306fec.tar.gz
elm_config: save the backend string as stringshare
the string might be on the stack ... The same as in the previous commit, that path was never really tested, caused by the fact that the *none* engine was not even running
-rw-r--r--src/lib/elementary/elm_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 12b4733ee6..9401f8b77d 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -4522,7 +4522,7 @@ elm_config_web_backend_set(const char *backend)
{
_elm_config->priv.web_backend = EINA_TRUE;
if (_elm_web_init(backend))
- _elm_config->web_backend = backend;
+ eina_stringshare_replace(&_elm_config->web_backend, backend);
}
EAPI const char *