Check the right thing for NULL.

This commit is contained in:
Michael Drake 2013-01-18 21:58:37 +00:00
parent 5bda4edb1a
commit a6e56546c9
1 changed files with 2 additions and 2 deletions

View File

@ -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);