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
This commit is contained in:
Marcel Hollerbach 2018-02-17 21:13:24 +01:00
parent 8aa4df37c3
commit 881fddc7a3
1 changed files with 1 additions and 1 deletions

View File

@ -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 *