aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-10 09:19:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-10 09:19:09 +0000
commit7b5c551835d3ac00f12a06b804f54a91eb97e367 (patch)
treef2811bebbf00c3602d2bf858797dcb2bb4a60e5a /lib/url.c
parenta5b2eb7962524aad65f07c5755920379af5717e3 (diff)
adjusted to the changed getpass_r()
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index f3212901a..9e32eaff4 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -266,7 +266,12 @@ CURLcode curl_close(CURL *curl)
int my_getpass(void *clientp, char *prompt, char* buffer, int buflen )
{
- return getpass_r(prompt, buffer, buflen);
+ char *retbuf;
+ retbuf = getpass_r(prompt, buffer, buflen);
+ if(NULL == retbuf)
+ return 1;
+ else
+ return 0; /* success */
}