aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/alarm-notify/config-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/alarm-notify/config-data.c')
-rw-r--r--calendar/alarm-notify/config-data.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/calendar/alarm-notify/config-data.c b/calendar/alarm-notify/config-data.c
index b9f9b7a07d..84a2e38265 100644
--- a/calendar/alarm-notify/config-data.c
+++ b/calendar/alarm-notify/config-data.c
@@ -110,14 +110,18 @@ config_data_get_notify_with_tray (void)
static void
source_written_cb (GObject *source_object,
- GAsyncResult *result,
- gpointer user_data)
+ GAsyncResult *result,
+ gpointer user_data)
{
GError *error = NULL;
- if (!e_source_write_finish (E_SOURCE (source_object), result, &error)) {
- g_warning ("Failed to write source changes: %s", error ? error->message : "Unknown error");
- g_clear_error (&error);
+ e_source_write_finish (E_SOURCE (source_object), result, &error);
+
+ if (error != NULL) {
+ g_warning (
+ "Failed to write source changes: %s",
+ error->message);
+ g_error_free (error);
}
}