projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
completely new barrier implementation, addressing major correctness issues
[oweals/musl.git]
/
src
/
multibyte
/
mbrtowc.c
diff --git
a/src/multibyte/mbrtowc.c
b/src/multibyte/mbrtowc.c
index a354573a1bde6100021808000dbb50643de21c86..291537f800f3705cffd50a570e9186a328c674a1 100644
(file)
--- 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;