summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorGuillaume Friloux <kuri@efl.so>2014-01-01 21:27:19 +0100
committerGuillaume Friloux <kuri@efl.so>2014-01-01 21:27:19 +0100
commit42c32b48a6c0170b0f125a1c73242064b670bd2e (patch)
treed8b68b27750f9beb2d94cd3ea79d70f2c6bc439e /src/lib/efreet
parent7753144fe903677c39aec1b96fe478d32a17a99b (diff)
Simplify code of efreet_desktop_environment_set().
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_desktop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/efreet/efreet_desktop.c b/src/lib/efreet/efreet_desktop.c
index dab5e56264..25e59df1d9 100644
--- a/src/lib/efreet/efreet_desktop.c
+++ b/src/lib/efreet/efreet_desktop.c
@@ -386,9 +386,7 @@ efreet_desktop_free(Efreet_Desktop *desktop)
386EAPI void 386EAPI void
387efreet_desktop_environment_set(const char *environment) 387efreet_desktop_environment_set(const char *environment)
388{ 388{
389 if (desktop_environment) eina_stringshare_del(desktop_environment); 389 eina_stringshare_replace(&desktop_environment, environment);
390 if (environment) desktop_environment = eina_stringshare_add(environment);
391 else desktop_environment = NULL;
392} 390}
393 391
394EAPI const char * 392EAPI const char *