From a6e56546c957f213503333483b383307dda144b9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 18 Jan 2013 21:58:37 +0000 Subject: [PATCH] Check the right thing for NULL. --- render/textinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/textinput.c b/render/textinput.c index 71b4e53e0..5fa33c7cf 100644 --- a/render/textinput.c +++ b/render/textinput.c @@ -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);