about summary refs log tree commit diff
path: root/src/multibyte/mbrtowc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multibyte/mbrtowc.c')
-rw-r--r--src/multibyte/mbrtowc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multibyte/mbrtowc.c b/src/multibyte/mbrtowc.c
index a354573a..291537f8 100644
--- a/src/multibyte/mbrtowc.c
+++ b/src/multibyte/mbrtowc.c
@@ -22,7 +22,7 @@ size_t mbrtowc(wchar_t *wc, const char *src, size_t n, mbstate_t *st)
 	c = *(unsigned *)st;
 	
 	if (!s) {
-		s = "";
+		s = (void *)"";
 		wc = (void *)&wc;
 		n = 1;
 	} else if (!wc) wc = (void *)&wc;