1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[smjs] Assertion failure

This commit is contained in:
Witold Filipczyk 2023-01-11 19:34:51 +01:00
parent acf7527624
commit 123a053b55

View File

@ -239,10 +239,7 @@ add_jschars_to_utf8_string(struct string *utf8,
}
}
if (unicode == 0) {
if (!add_char_to_string(utf8, '\0'))
return NULL;
} else {
if (unicode) {
if (!add_to_string(utf8, encode_utf8(unicode)))
return NULL;
}