From fadd0daf0caaa8a6bab10d457e21176e25ecf060 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 25 Apr 2008 18:06:25 +0000 Subject: Fix possible use of unitialized memory. --- common/glib-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit