mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
initialise the line to zeros
This commit is contained in:
parent
a19b503a31
commit
af1e4d6e34
@ -192,7 +192,7 @@ static LINE_REC *textbuffer_line_create(TEXT_BUFFER_REC *buffer)
|
||||
if (buffer->cur_text == NULL)
|
||||
text_chunk_create(buffer);
|
||||
|
||||
rec = g_slice_new(LINE_REC);
|
||||
rec = g_slice_new0(LINE_REC);
|
||||
rec->text = buffer->cur_text->buffer + buffer->cur_text->pos;
|
||||
|
||||
buffer->cur_text->refcount++;
|
||||
|
Loading…
Reference in New Issue
Block a user