mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Check the right thing for NULL.
This commit is contained in:
parent
5bda4edb1a
commit
a6e56546c9
@ -1385,7 +1385,7 @@ bool textinput_textarea_callback(struct browser_window *bw, uint32_t key,
|
||||
bool success;
|
||||
|
||||
gui_get_clipboard(&buff, &buff_len);
|
||||
if (utf8 == NULL)
|
||||
if (buff == NULL)
|
||||
return false;
|
||||
|
||||
success = browser_window_paste_text(bw, buff, buff_len, true);
|
||||
@ -2032,7 +2032,7 @@ bool textinput_input_callback(struct browser_window *bw, uint32_t key,
|
||||
bool success;
|
||||
|
||||
gui_get_clipboard(&buff, &buff_len);
|
||||
if (utf8 == NULL)
|
||||
if (buff == NULL)
|
||||
return false;
|
||||
|
||||
success = browser_window_paste_text(bw, buff, buff_len, true);
|
||||
|
Loading…
Reference in New Issue
Block a user