diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-14 10:08:16 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-14 10:08:16 +0200 |
commit | bfabcd68c8c9044c27643142b23f31839cc12745 (patch) | |
tree | 5426108ab4ae3883890fbd88deb02364f3f69ca0 /src/gui/gui-line.c | |
parent | 1f054b1d84e43154a47aa0007ae4dd169feafc7f (diff) | |
download | weechat-bfabcd68c8c9044c27643142b23f31839cc12745.zip |
core: fix use of unitialized value (line->data->display) when adding a line in buffer
Diffstat (limited to 'src/gui/gui-line.c')
-rw-r--r-- | src/gui/gui-line.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index eb9031747..9e86b891a 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -1048,11 +1048,13 @@ gui_line_add (struct t_gui_buffer *buffer, time_t date, else new_line->data->highlight = gui_line_has_highlight (new_line); + /* check if line is filtered or not */ + new_line->data->displayed = gui_filter_check_line (new_line); + /* add line to lines list */ gui_line_add_to_list (buffer->own_lines, new_line); - /* check if line is filtered or not */ - new_line->data->displayed = gui_filter_check_line (new_line); + /* update hotlist and/or send signals for line */ if (new_line->data->displayed) { if (new_line->data->highlight) |