From ebdbbb593ad328e5befb0426793137284ad38777 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 30 Jul 2020 11:13:37 +0100 Subject: [PATCH] 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 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; -#else { +#ifndef HAVE_GETPWENT + 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);