bluetooth: Initialize GError properly

This commit is contained in:
Denis Kenzior 2011-05-31 11:41:42 -05:00
parent d80698f25d
commit d99ca1779a
1 changed files with 1 additions and 1 deletions

View File

@ -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)