From: Christian Dywan Date: Wed, 26 Oct 2011 17:51:05 +0000 (+0200) Subject: sokoke_widget_copy_clipboard must be NULL-safe X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2d95c0e43f310cc16b7560d0695367e3857a2b;p=midori sokoke_widget_copy_clipboard must be NULL-safe --- diff --git a/midori/sokoke.c b/midori/sokoke.c index d3daab01..f77011a5 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -1879,9 +1879,9 @@ sokoke_widget_copy_clipboard (GtkWidget* widget, GtkClipboard* clipboard; clipboard = gtk_clipboard_get_for_display (display, GDK_SELECTION_CLIPBOARD); - gtk_clipboard_set_text (clipboard, text, -1); + gtk_clipboard_set_text (clipboard, text ? text : "", -1); clipboard = gtk_clipboard_get_for_display (display, GDK_SELECTION_PRIMARY); - gtk_clipboard_set_text (clipboard, text, -1); + gtk_clipboard_set_text (clipboard, text ? text : "", -1); } gchar*