mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +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
|
|
@ -450,8 +450,9 @@ void textbuffer_line2text(LINE_REC *line, int coloring, GString *str)
|
|||
g_return_if_fail(line != NULL);
|
||||
g_return_if_fail(str != NULL);
|
||||
|
||||
g_string_truncate(str, 0);
|
||||
g_string_truncate(str, 0);
|
||||
|
||||
g_return_if_fail(line->text != NULL);
|
||||
for (ptr = line->text;;) {
|
||||
if (*ptr != 0) {
|
||||
g_string_append_c(str, (char) *ptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue