mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: check that buffer is not NULL in function gui_input_clipboard_copy
This commit is contained in:
+1
-2
@@ -283,7 +283,7 @@ gui_input_insert_string (struct t_gui_buffer *buffer, const char *string)
|
||||
void
|
||||
gui_input_clipboard_copy (const char *buffer, int size)
|
||||
{
|
||||
if (size <= 0)
|
||||
if (!buffer || (size <= 0))
|
||||
return;
|
||||
|
||||
if (gui_input_clipboard != NULL)
|
||||
@@ -913,7 +913,6 @@ gui_input_delete_next_word (struct t_gui_buffer *buffer)
|
||||
1); /* stop completion */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Deletes all from cursor pos to beginning of line (default key: ctrl-U).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user