aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/copy-tool/ChangeLog7
-rw-r--r--plugins/copy-tool/copy-tool.c4
2 files changed, 9 insertions, 2 deletions
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 <Simon.Zheng@Sun.Com>
+
+ Fix for 322733.
+
+ * copy-tool.c: (ct_selection_get): Move printf() statement after
+ NULL checking.
+
2005-05-11 Not Zed <NotZed@Ximian.com>
* 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;