aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-11-20 20:05:30 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-11-20 20:05:30 +0000
commit2b61d291722f767df5b814f4710843a6b884ffd2 (patch)
tree7583758ba54971d61f6478b40934b451c4e48004 /lib
parent981e34b9ca651f4e50ee53ed1be87b2e877dae88 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/iconv/citrus_none.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/iconv/citrus_none.c b/lib/libc/iconv/citrus_none.c
index 9ec4bd360cb8..ff3c85d94a85 100644
--- a/lib/libc/iconv/citrus_none.c
+++ b/lib/libc/iconv/citrus_none.c
@@ -164,7 +164,7 @@ _citrus_NONE_stdenc_mbtowc(struct _citrus_stdenc * __restrict ce __unused,
struct iconv_hooks *hooks)
{
- if (s == NULL) {
+ if (*s == NULL) {
*nresult = 0;
return (0);
}
@@ -176,7 +176,7 @@ _citrus_NONE_stdenc_mbtowc(struct _citrus_stdenc * __restrict ce __unused,
if (pwc != NULL)
*pwc = (_wc_t)(unsigned char) **s;
- *nresult = *s == '\0' ? 0 : 1;
+ *nresult = **s == '\0' ? 0 : 1;
if ((hooks != NULL) && (hooks->wc_hook != NULL))
hooks->wc_hook(*pwc, hooks->data);