summaryrefslogtreecommitdiff
path: root/lib/netrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/netrc.c')
-rw-r--r--lib/netrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netrc.c b/lib/netrc.c
index e32e062d6..a9722df2f 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -89,7 +89,7 @@ int Curl_parsenetrc(const char *host,
&& pw_res) {
home = strdup(pw.pw_dir);
if(!home)
- return CURLE_OUT_OF_MEMORY;
+ return -1;
home_alloc = TRUE;
}
#elif defined(HAVE_GETPWUID) && defined(HAVE_GETEUID)