From f3584df197214b997bc9ae927780e03c37c9e36c Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 14 Mar 2017 02:06:03 +0000 Subject: MFC r313982, r314068: sys: Replace zero with NULL for pointers. Found with: devel/coccinelle --- sys/libkern/iconv_xlat16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/libkern/iconv_xlat16.c') 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 { -- cgit v1.1