From 316345861936fd259e15f56329b5810ff5861b5b Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 30 Jul 2020 11:13:37 +0100 Subject: 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); -- cgit v1.2.1