mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 09:32:32 +02:00
fail on empty text
reported by @dwfreed
This commit is contained in:
parent
42110b92e9
commit
dee0554731
1 changed files with 2 additions and 1 deletions
|
|
@ -452,6 +452,7 @@ void textbuffer_line2text(LINE_REC *line, int coloring, GString *str)
|
||||||
|
|
||||||
g_string_truncate(str, 0);
|
g_string_truncate(str, 0);
|
||||||
|
|
||||||
|
g_return_if_fail(line->text != NULL);
|
||||||
for (ptr = line->text;;) {
|
for (ptr = line->text;;) {
|
||||||
if (*ptr != 0) {
|
if (*ptr != 0) {
|
||||||
g_string_append_c(str, (char) *ptr);
|
g_string_append_c(str, (char) *ptr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue