aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-25 16:01:45 -0500
committerTed Gould <ted@canonical.com>2009-08-25 16:01:45 -0500
commit19f312f6319d5c3fcb4b21d1e655b08bc4a609de (patch)
tree4f834b785cfb48846986e6b11c3baf7e3d1018ae /src
parentacf054710bea98ee0a63c72cf5e5bcbff8b9bc74 (diff)
downloadayatana-indicator-messages-19f312f6319d5c3fcb4b21d1e655b08bc4a609de.tar.gz
ayatana-indicator-messages-19f312f6319d5c3fcb4b21d1e655b08bc4a609de.tar.bz2
ayatana-indicator-messages-19f312f6319d5c3fcb4b21d1e655b08bc4a609de.zip
Checking to see if error is null before looking inside it.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 384198a..e4982a2 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -195,7 +195,7 @@ blacklist_init (gpointer data)
GError * error = NULL;
GDir * dir = g_dir_open(blacklistdir, 0, &error);
if (dir == NULL) {
- g_warning("Unable to open blacklist directory (%s): %s", blacklistdir, error->message);
+ g_warning("Unable to open blacklist directory (%s): %s", blacklistdir, error == NULL ? "No Message" : error->message);
g_error_free(error);
g_free(blacklistdir);
return FALSE;