diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-07-02 22:29:21 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-07-02 22:29:21 +0000 |
commit | 7cd522b1ec3865a65dc4fdcd4e729cb6155d4c9f (patch) | |
tree | fd6bc87a7150c01e55eb56ea78d377a5191e633c /usr.bin/ssh/readpass.c | |
parent | 06326fed631a05d6baa4d9220226706d41a5e6d9 (diff) |
do not return NULL, use "" instead.
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r-- | usr.bin/ssh/readpass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c index 3b6ed72babc..7ab205f8f66 100644 --- a/usr.bin/ssh/readpass.c +++ b/usr.bin/ssh/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 <readpassphrase.h> @@ -119,7 +119,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); |