aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/comp-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/comp-util.c')
-rw-r--r--calendar/gui/comp-util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index aceff667c2..45d9dc1f27 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -227,11 +227,11 @@ cal_comp_is_on_server (CalComponent *comp, CalClient *client)
return TRUE;
}
- if (error) {
- g_warning ("cal_comp_is_on_server(): %s", error->message);
- g_error_free (error);
- }
-
+ if (error->code != E_CALENDAR_STATUS_OBJECT_NOT_FOUND)
+ g_warning (G_STRLOC ": %s", error->message);
+
+ g_clear_error (&error);
+
return FALSE;
}