1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -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) if (buffer->cur_text == NULL)
text_chunk_create(buffer); 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; rec->text = buffer->cur_text->buffer + buffer->cur_text->pos;
buffer->cur_text->refcount++; buffer->cur_text->refcount++;