summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-04-11 08:30:38 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-04-11 08:33:21 +0200
commitfe327d0a78f89a28ab5de13cb6183fbfc1aaa830 (patch)
treeb1079d28dfcf15fd7e50dfe2089fc606d5338e29
parent160a24bcf90c96d0d2b1fce7067ac5871f4feff4 (diff)
downloadconnman-fe327d0a78f89a28ab5de13cb6183fbfc1aaa830.tar.gz
connman-fe327d0a78f89a28ab5de13cb6183fbfc1aaa830.tar.bz2
connman-fe327d0a78f89a28ab5de13cb6183fbfc1aaa830.zip
session: connect_session: Fix unitialized callback
Furthermore, the service pointer has to be set to NULL when the service is not idle, connecting, or connected.
-rw-r--r--src/session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 98c50ad3..d681d72b 100644
--- a/src/session.c
+++ b/src/session.c
@@ -603,7 +603,7 @@ static DBusMessage *connect_session(DBusConnection *conn,
{
struct connman_session *session = user_data;
struct connman_service *service = NULL;
- GSourceFunc callback;
+ GSourceFunc callback = NULL;
GSequenceIter *iter;
DBG("session %p", session);
@@ -633,6 +633,8 @@ static DBusMessage *connect_session(DBusConnection *conn,
break;
}
+ service = NULL;
+
iter = g_sequence_iter_next(iter);
}