summaryrefslogtreecommitdiff
path: root/obexd/client/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'obexd/client/bluetooth.c')
-rw-r--r--obexd/client/bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/obexd/client/bluetooth.c b/obexd/client/bluetooth.c
index 1f407d1b4..75deea017 100644
--- a/obexd/client/bluetooth.c
+++ b/obexd/client/bluetooth.c
@@ -407,7 +407,6 @@ static guint bluetooth_connect(const char *source, const char *destination,
session->port = port;
session->user_data = user_data;
- session->service = g_strdup(service);
str2ba(destination, &session->dst);
str2ba(source, &session->src);
@@ -416,6 +415,7 @@ static guint bluetooth_connect(const char *source, const char *destination,
return 0;
}
+ session->service = g_strdup(service);
sessions = g_slist_prepend(sessions, session);
return session->id;