diff options
author | pfg <pfg@FreeBSD.org> | 2017-03-14 02:06:03 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2017-03-14 02:06:03 +0000 |
commit | f3584df197214b997bc9ae927780e03c37c9e36c (patch) | |
tree | aae668303806e238ca59fc767e74a67964266c3f /sys/libkern | |
parent | 1c6f535240ae8fa78eae79343be21fe7ff7a6807 (diff) | |
download | FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.zip FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.tar.gz |
MFC r313982, r314068:
sys: Replace zero with NULL for pointers.
Found with: devel/coccinelle
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/iconv_xlat16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/iconv_xlat16.c b/sys/libkern/iconv_xlat16.c index dbac892..8facd77 100644 --- a/sys/libkern/iconv_xlat16.c +++ b/sys/libkern/iconv_xlat16.c @@ -268,7 +268,7 @@ iconv_xlat16_conv(void *d2p, const char **inbuf, * there is a case that inbuf char is a single * byte char while inlen == 2 */ - if ((u_char)*(src+1) == 0 && !nullin ) { + if ((u_char)*(src+1) == '\0' && !nullin ) { src++; ir--; } else { |