summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-05-31 11:41:42 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-05-31 11:41:42 -0500
commitd99ca1779a5d6a782573a76036aeaf3d62975fed (patch)
treea82337cfa4132b2fcf050bc00bbbc6a3b0e69ccf
parentd80698f25d14078fa70545e12fa94ad81e7e5dd8 (diff)
downloadofono-d99ca1779a5d6a782573a76036aeaf3d62975fed.tar.bz2
bluetooth: Initialize GError properly
-rw-r--r--plugins/bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 2a507c58..457e0c0c 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -878,7 +878,7 @@ struct server *bluetooth_register_server(guint8 channel, const char *sdp_record,
ConnectFunc cb, gpointer user_data)
{
struct server *server;
- GError *err;
+ GError *err = NULL;
server = g_try_new0(struct server, 1);
if (!server)