apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/passwd apr_getpass.c
Date Sun, 11 Feb 2001 23:32:11 GMT
wrowe       01/02/11 15:32:11

  Modified:    passwd   apr_getpass.c
  Log:
    Make that even simpler.
  
  Revision  Changes    Path
  1.12      +1 -4      apr/passwd/apr_getpass.c
  
  Index: apr_getpass.c
  ===================================================================
  RCS file: /home/cvs/apr/passwd/apr_getpass.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- apr_getpass.c	2001/02/11 23:31:04	1.11
  +++ apr_getpass.c	2001/02/11 23:32:11	1.12
  @@ -214,10 +214,7 @@
   
   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));
  
  
  

Mime
View raw message