diff options
author | 2015-12-11 00:20:04 +0000 | |
---|---|---|
committer | 2015-12-11 00:20:04 +0000 | |
commit | 9a3a39211d2624c319a58d7a9ca00f5c01c09a24 (patch) | |
tree | f0b623016bd589e02fee43b4fe6a2a4b6447fcc7 /usr.bin/ssh/readpass.c | |
parent | Remove a few NULL-checks before free(). I've already removed these (diff) | |
download | wireguard-openbsd-9a3a39211d2624c319a58d7a9ca00f5c01c09a24.tar.xz wireguard-openbsd-9a3a39211d2624c319a58d7a9ca00f5c01c09a24.zip |
Pass (char *)NULL rather than (char *)0 to execl and execlp.
ok dtucker@
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 b5a86d782a7..9243a0e90c0 100644 --- a/usr.bin/ssh/readpass.c +++ b/usr.bin/ssh/readpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readpass.c,v 1.50 2014/02/02 03:44:31 djm Exp $ */ +/* $OpenBSD: readpass.c,v 1.51 2015/12/11 00:20:04 mmcc Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -73,7 +73,7 @@ ssh_askpass(char *askpass, const char *msg) close(p[0]); if (dup2(p[1], STDOUT_FILENO) < 0) fatal("ssh_askpass: dup2: %s", strerror(errno)); - execlp(askpass, askpass, msg, (char *) 0); + execlp(askpass, askpass, msg, (char *)NULL); fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); } close(p[1]); |