From 8c1ef0a8185fe7a2f44ce74eb4a227fb37ade448 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 7 Mar 2018 15:51:30 +0100 Subject: [PATCH] Fix msvc runtime check failure "The variable 'has_ipv6' is being used without being initialized Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61922 --- dbus/dbus-sysdeps-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 6deb475f..af869c87 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -696,7 +696,7 @@ _dbus_has_ipv6 (void) struct addrinfo hints; struct addrinfo *ai = 0; DBusSocket temp = DBUS_SOCKET_INIT; - dbus_bool_t has_ipv6; + dbus_bool_t has_ipv6 = TRUE; if(cached_result != -1) return cached_result; -- 2.12.3