summaryrefslogtreecommitdiffstats
path: root/sys/libkern/iconv_xlat16.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libkern/iconv_xlat16.c')
-rw-r--r--sys/libkern/iconv_xlat16.c2
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 {
OpenPOWER on IntegriCloud