mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Get rid of compiler warning concerning NULL pointer
Casting the into correct type.
This commit is contained in:
parent
523d92e950
commit
86c3c50219
@ -299,7 +299,7 @@ static int
|
|||||||
_inp_printable(const wint_t ch)
|
_inp_printable(const wint_t ch)
|
||||||
{
|
{
|
||||||
char bytes[MB_CUR_MAX+1];
|
char bytes[MB_CUR_MAX+1];
|
||||||
size_t utf_len = wcrtomb(bytes, ch, NULL);
|
size_t utf_len = wcrtomb(bytes, ch, (mbstate_t*)NULL);
|
||||||
bytes[utf_len] = '\0';
|
bytes[utf_len] = '\0';
|
||||||
gunichar unichar = g_utf8_get_char(bytes);
|
gunichar unichar = g_utf8_get_char(bytes);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user