From: Daniel Stenberg Date: Fri, 10 Nov 2000 09:19:09 +0000 (+0000) Subject: adjusted to the changed getpass_r() X-Git-Tag: upstream/7.37.1~17496 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b5c551835d3ac00f12a06b804f54a91eb97e367;p=platform%2Fupstream%2Fcurl.git adjusted to the changed getpass_r() --- diff --git a/lib/url.c b/lib/url.c index f321290..9e32eaf 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 */ }