From 19f09dcc61293ebafa82585c3972ccb6a387887b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 12 Feb 2013 11:15:37 +0000 Subject: Init clipboard to NULL, just in case front end implementation of gui_get_clipboard fails to set it on empty clipboard. --- desktop/textarea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/textarea.c b/desktop/textarea.c index f8462c0b2..bb0ed310c 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -1821,7 +1821,7 @@ bool textarea_keypress(struct textarea *ta, uint32_t key) break; case KEY_PASTE: { - char *clipboard; + char *clipboard = NULL; size_t clipboard_length; size_t clipboard_chars; -- cgit v1.2.3