1
0
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:
ailin-nemui 2018-08-21 09:21:23 +02:00
parent a19b503a31
commit af1e4d6e34

View File

@ -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++;