From f3ef76f909a14ef3c2883b4932e573570a39a9f1 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Mon, 7 Oct 2013 09:02:38 +0200 Subject: [PATCH] Initialize x_clipboard_text with NULL --- shortcuts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts.c b/shortcuts.c index 1191144..1820a98 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -277,7 +277,7 @@ sc_focus_inputbar(girara_session_t* session, girara_argument_t* argument, girara GdkAtom* selection = get_selection(zathura); /* we save the X clipboard that will be clear by "grab_focus" */ - gchar* x_clipboard_text; + gchar* x_clipboard_text = NULL; if (selection != NULL) { x_clipboard_text = gtk_clipboard_wait_for_text(gtk_clipboard_get(*selection));