aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 877b1d471f..fe07ed7275 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -614,7 +614,8 @@ bool AppInit2(int argc, char* argv[])
fBound |= Bind(CService(strBind, GetDefaultPort(), false));
}
} else {
- struct in_addr inaddr_any = {s_addr: INADDR_ANY};
+ struct in_addr inaddr_any;
+ inaddr_any.s_addr = INADDR_ANY;
fBound |= Bind(CService(inaddr_any, GetDefaultPort()));
#ifdef USE_IPV6
fBound |= Bind(CService(in6addr_any, GetDefaultPort()));