mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:26:01 +01:00
Initialize x_clipboard_text with NULL
This commit is contained in:
parent
d423ff7305
commit
f3ef76f909
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue