summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/glib-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c
index 5e0d4cb3..f76cdecb 100644
--- a/common/glib-helper.c
+++ b/common/glib-helper.c
@@ -348,7 +348,7 @@ GSList *bt_string2list(const gchar *str)
static gboolean connect_cb(GIOChannel *io, GIOCondition cond,
struct io_context *io_ctxt)
{
- int sk, err, ret;
+ int sk, err = 0, ret;
socklen_t len;
if (cond & G_IO_NVAL)