GSocks5Proxy: don't crash if parsing negotiation reply fails
[platform/upstream/glib.git] / gio / gsocks5proxy.c
index 9d9055f..0d6269e 100644 (file)
@@ -708,7 +708,7 @@ nego_reply_read_cb (GObject      *source,
   
   if (data->offset == data->length)
     {
-      GError *error;
+      GError *error = NULL;
       gboolean must_auth = FALSE;
       gboolean has_auth = data->username || data->password;