From 3da4948c0fc1f2c21b163f0ec456b2d99c881258 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 7 Sep 2013 12:31:19 -0400 Subject: Miscellaneous cleanups. --- plugins/mail-notification/mail-notification.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mail-notification') diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index 99abfdec20..f68cf35c41 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -163,7 +163,7 @@ send_dbus_message (const gchar *name, /* Frees the message */ g_object_unref (message); - if (error) { + if (error != NULL) { g_warning ("%s: %s", G_STRFUNC, error->message); g_error_free (error); } @@ -202,7 +202,7 @@ init_gdbus (void) return TRUE; connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error); - if (error) { + if (error != NULL) { g_warning ("could not get system bus: %s\n", error->message); g_error_free (error); -- cgit v1.2.3