diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-12 17:19:44 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-12 17:20:43 +0200 |
commit | 839c4e796694c735f73e29e01ae161eb95855c0e (patch) | |
tree | 27d967f4b1feffcc3b5c5f681e9b8a4e73d39a5b /src | |
parent | d960a335f8353d30fabb2b956ac46fa827a56198 (diff) |
Fix initialization of inaddr_any
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 3 |
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())); |