From 3b2d95c0e43f310cc16b7560d0695367e3857a2b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 26 Oct 2011 19:51:05 +0200 Subject: [PATCH] sokoke_widget_copy_clipboard must be NULL-safe --- midori/sokoke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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* -- 2.39.5