aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-05-12 17:19:44 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-05-12 17:20:43 +0200
commit839c4e796694c735f73e29e01ae161eb95855c0e (patch)
tree27d967f4b1feffcc3b5c5f681e9b8a4e73d39a5b /src/init.cpp
parentd960a335f8353d30fabb2b956ac46fa827a56198 (diff)
Fix initialization of inaddr_any
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()));