1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

core: fix crash when looking at context in chat area for focus

This commit is contained in:
Sebastien Helleu
2011-08-14 23:10:45 +02:00
parent 1ca036e8d9
commit 1c62702758
+1 -1
View File
@@ -221,7 +221,7 @@ gui_window_get_context_at_xy (struct t_gui_window *window,
{
last_space = NULL;
word_start = (*line)->data->message;
while (word_start < ptr_data)
while (word_start && (word_start < ptr_data))
{
word_start = (char *)gui_chat_string_next_char (NULL,
(unsigned char *)word_start,