diff options
author | ngie <ngie@FreeBSD.org> | 2016-12-03 17:17:42 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-12-03 17:17:42 +0000 |
commit | de9c1e498c9083787fed20b89b77dce7f67d668e (patch) | |
tree | 4090ad0dc9bdc4f6d8760d071cac4a3cb7f3b346 /lib/libc/net/base64.c | |
parent | bf027d30f65946c403cff801d75f469e39fa3e48 (diff) | |
download | FreeBSD-src-de9c1e498c9083787fed20b89b77dce7f67d668e.zip FreeBSD-src-de9c1e498c9083787fed20b89b77dce7f67d668e.tar.gz |
MFC r297790:
r297790 (by pfg):
libc: replace 0 with NULL for pointers.
While here also cleanup some surrounding code; particularly
drop some malloc() casts.
Found with devel/coccinelle.
Diffstat (limited to 'lib/libc/net/base64.c')
-rw-r--r-- | lib/libc/net/base64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/base64.c b/lib/libc/net/base64.c index 8a9c59e..2c4cfe3 100644 --- a/lib/libc/net/base64.c +++ b/lib/libc/net/base64.c @@ -210,7 +210,7 @@ b64_pton(const char *src, u_char *target, size_t targsize) break; pos = strchr(Base64, ch); - if (pos == 0) /* A non-base64 character. */ + if (pos == NULL) /* A non-base64 character. */ return (-1); switch (state) { |