summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2015-04-14 20:13:01 +0300
committerEric Koegel <eric.koegel@gmail.com>2015-04-14 20:13:01 +0300
commit45cc0180fae3708ce17d16578041edb54e8c308d (patch)
tree0d912eea66fd9b734d3e8ffdf60e9d97ec4f3a04
parentc695fd809219cba200b32c0571ff9c430114cf1a (diff)
downloadConsoleKit2-45cc0180fae3708ce17d16578041edb54e8c308d.tar.gz
Don't set an initial value
Otherwise we end up getting an error over a previous error message.
-rw-r--r--src/ck-session.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ck-session.c b/src/ck-session.c
index f8dd14b..a3d9392 100644
--- a/src/ck-session.c
+++ b/src/ck-session.c
@@ -449,17 +449,13 @@ static gboolean
dbus_activate (ConsoleKitSession *cksession,
GDBusMethodInvocation *context)
{
- GError *error;
+ GError *error = NULL;
CkSession *session = CK_SESSION (cksession);
TRACE ();
g_return_val_if_fail (session, FALSE);
- /* Set an initial error message in the event the signal isn't handeled */
- g_set_error (&error, CK_SESSION_ERROR, CK_SESSION_ERROR_NOT_SUPPORTED,
- _("Activate signal not handeled. Session not attached to seat, or the seat doesn't support activation changes"));
-
g_signal_emit (session, signals [ACTIVATE], 0, context, &error);
if (error != NULL) {
/* if the signal is not handled then either: