summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2006-11-06 00:35:01 -0500
committerWilliam Jon McCann <mccann@jhu.edu>2006-11-06 00:35:01 -0500
commitbe02d5de51072235c20d6974f0cccb485055a02e (patch)
tree5a1c823a64df0c4ac136ad3f3567af63b4605dfb /src/main.c
parent7e817628550ab4932baf6059b06049944893af7e (diff)
Show message even when error is NULL. Fix valgrind script.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 683d394..de0370e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -99,6 +99,8 @@ main (int argc,
if (error != NULL) {
g_warning ("Failed to acquire %s: %s", CK_DBUS_NAME, error->message);
g_error_free (error);
+ } else {
+ g_warning ("Failed to acquire %s", CK_DBUS_NAME);
}
exit (1);
}
@@ -107,6 +109,8 @@ main (int argc,
if (error != NULL) {
g_warning ("Failed to acquire %s: %s", CK_DBUS_NAME, error->message);
g_error_free (error);
+ } else {
+ g_warning ("Failed to acquire %s", CK_DBUS_NAME);
}
exit (1);
}