diff options
author | 2001-07-02 22:29:20 +0000 | |
---|---|---|
committer | 2001-07-02 22:29:20 +0000 | |
commit | 04e3678d2109a1ad7e6a3a63d0dc9274de8ca00a (patch) | |
tree | 2183111b45afac11fa86bc045a6a052d167c3d18 /usr.bin/ssh/readpass.c | |
parent | install sc7816.h to /usr/includes (used by usr.bin/sectok) (diff) | |
download | wireguard-openbsd-04e3678d2109a1ad7e6a3a63d0dc9274de8ca00a.tar.xz wireguard-openbsd-04e3678d2109a1ad7e6a3a63d0dc9274de8ca00a.zip |
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); |