summaryrefslogtreecommitdiff
path: root/readpass.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 05:19:27 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 05:19:27 +0000
commit4f42d8cda393bebebdd5ab706464e60ecdb7346f (patch)
treeb607c1c557eaea35f6edc7ec6f3896e27345db8c /readpass.c
parent4983d5ebd50800edd3c7caa08a37a5206221441d (diff)
- markus@cvs.openbsd.org 2001/07/02 22:29:20
[readpass.c] do not return NULL, use "" instead.
Diffstat (limited to 'readpass.c')
-rw-r--r--readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readpass.c b/readpass.c
index 10171cf6..4eeeed91 100644
--- a/readpass.c
+++ b/readpass.c
@@ -32,7 +32,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readpass.c,v 1.19 2001/06/24 05:35:33 markus Exp $");
+RCSID("$OpenBSD: readpass.c,v 1.20 2001/07/02 22:29:20 markus Exp $");
#include "xmalloc.h"
#include "readpass.h"
@@ -117,7 +117,7 @@ read_passphrase(const char *prompt, int flags)
}
if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL)
- return NULL;
+ return xstrdup("");
ret = xstrdup(buf);
memset(buf, 'x', sizeof buf);