From 9893133215359553992428d94d700bee20663d7c Mon Sep 17 00:00:00 2001 From: wrowe Date: Sun, 11 Feb 2001 23:32:11 +0000 Subject: Make that even simpler. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61219 13f79535-47bb-0310-9956-ffa450edef68 --- passwd/apr_getpass.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'passwd') diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c index 9e1610811..a5cbdea43 100644 --- a/passwd/apr_getpass.c +++ b/passwd/apr_getpass.c @@ -214,10 +214,7 @@ static char *getpass(const char *prompt) APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf, size_t *bufsiz) { - char *pw_got = NULL; - int result = 0; - - pw_got = getpass(prompt); + char *pw_got = getpass(prompt); if (strlen(pw_got) > (*bufsiz - 1)) { *bufsiz = ERR_OVERFLOW; memset(pw_got, 0, strlen(pw_got)); -- cgit v1.2.1