raster pushed a commit to branch efl-1.24.

http://git.enlightenment.org/core/efl.git/commit/?id=316345861936fd259e15f56329b5810ff5861b5b

commit 316345861936fd259e15f56329b5810ff5861b5b
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Thu Jul 30 11:13:37 2020 +0100

    eina vpath - fix windows ~username handling to only error when used
    
    we would always rrturn 0 on windows ... missing  {} in block. fix that.
    
    @fix
---
 src/lib/eina/eina_vpath.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index 871612c64e..4ed82f955f 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -230,11 +230,11 @@ _eina_vpath_resolve(const char *path, char *str, size_t 
size)
           }
         // ~username/ <- homedir of user "username"
         else
+          {
 #ifndef HAVE_GETPWENT
-          ERR("User fetching is disabled on this system\nThe string was: %s", 
path);
-          return 0;
+             ERR("User fetching is disabled on this system\nThe string was: 
%s", path);
+             return 0;
 #else
-          {
              const char *p;
              char *name;
 
@@ -249,8 +249,8 @@ _eina_vpath_resolve(const char *path, char *str, size_t 
size)
              if (!_fetch_user_homedir(&home, name, path))
                return 0;
              path = p;
-           }
 #endif
+           }
          if (home)
            {
               return snprintf(str, size, "%s%s", home, path);

-- 


Reply via email to