Add a missing return statement for the pwcs == NULL case (XSI extension).
This commit is contained in:
parent
0b77fb0c75
commit
39df93ae41
@ -67,6 +67,7 @@ mbstowcs(wchar_t * __restrict pwcs, const char * __restrict s, size_t n)
|
||||
errno = EILSEQ;
|
||||
return (-1);
|
||||
}
|
||||
return (cnt);
|
||||
}
|
||||
|
||||
/* Convert, store and count characters. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user