From f9ea878ce0af4b24b141facf701908bd67c674a6 Mon Sep 17 00:00:00 2001 From: Simon Zheng Date: Tue, 29 Nov 2005 11:15:23 +0000 Subject: Fix for 322733. 2005-11-29 Simon Zheng Fix for 322733. * copy-tool.c: (ct_selection_get): Move printf() statement after NULL checking. svn path=/trunk/; revision=30706 --- plugins/copy-tool/ChangeLog | 7 +++++++ plugins/copy-tool/copy-tool.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/copy-tool/ChangeLog b/plugins/copy-tool/ChangeLog index 3bc66f2ef1..fc391e095a 100644 --- a/plugins/copy-tool/ChangeLog +++ b/plugins/copy-tool/ChangeLog @@ -1,3 +1,10 @@ +2005-11-29 Simon Zheng + + Fix for 322733. + + * copy-tool.c: (ct_selection_get): Move printf() statement after + NULL checking. + 2005-05-11 Not Zed * Makefile.am: added built_sources/cleanfiles. diff --git a/plugins/copy-tool/copy-tool.c b/plugins/copy-tool/copy-tool.c index 5571ba25c1..ad28dfde1a 100644 --- a/plugins/copy-tool/copy-tool.c +++ b/plugins/copy-tool/copy-tool.c @@ -44,11 +44,11 @@ org_gnome_copy_tool_copy_address(void *ep, EMPopupTargetURI *t) static void ct_selection_get(GtkWidget *widget, GtkSelectionData *data, guint info, guint time_stamp, void *dummy) { - printf("get selection, address is '%s'\n", address_uri); - if (address_uri == NULL) return; + printf("get selection, address is '%s'\n", address_uri); + if (strncmp (address_uri, "mailto:", 7) == 0) { CamelInternetAddress *cia = camel_internet_address_new(); CamelURL *curl; -- cgit v1.2.3