From be02d5de51072235c20d6974f0cccb485055a02e Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 6 Nov 2006 00:35:01 -0500 Subject: Show message even when error is NULL. Fix valgrind script. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') 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); } -- cgit