1
0
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:
Sébastien Helleu
2023-01-01 14:39:38 +01:00
parent 73bac5491b
commit 727c465911
+1 -2
View File
@@ -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).
*/