summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-04-25 18:06:25 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-04-25 18:06:25 +0000
commitfadd0daf0caaa8a6bab10d457e21176e25ecf060 (patch)
tree6fbebe5a5b6a6043bcafc2b2e16bf84444e256ce
parent6c752ad5657d86f3ef900232e4ee8cfc115863a3 (diff)
Fix possible use of unitialized memory.
-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)