kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=6796b87dffb7916e9859cac5c063ca72bc3e85cb

commit 6796b87dffb7916e9859cac5c063ca72bc3e85cb
Author: Kim Woelders <k...@woelders.dk>
Date:   Sun Feb 4 14:21:12 2018 +0100

    Cosmetics
---
 src/theme.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/theme.c b/src/theme.c
index 92a50a8d..4aac0eb5 100644
--- a/src/theme.c
+++ b/src/theme.c
@@ -283,8 +283,6 @@ ThemeFind(const char *theme)
 
    _ThemePathsUpdate();
 
-   path = NULL;
-
    if (!theme || !theme[0])
       theme = NULL;            /* Lookup default */
    else if (!strcmp(theme, "-"))       /* Use fallbacks */
@@ -319,6 +317,7 @@ ThemeFind(const char *theme)
  check:
    if (theme)
      {
+       path = NULL;
        if (isdir(theme))
           path = _ThemeCheckPath(theme);
        else if (isfile(theme))
@@ -350,10 +349,11 @@ ThemePathFind(void)
    s = (name) ? strchr(name, '=') : NULL;
    if (s)
      {
-       *s = 0;
+       *s++ = '\0';
        Efree(Mode.theme.variant);
-       Mode.theme.variant = Estrdup(s + 1);
+       Mode.theme.variant = Estrdup(s);
      }
+
    path = ThemeFind(name);
 
    if (!path && (!name || strcmp(name, "-")))

-- 


Reply via email to