- Fix more initialisation errors reported by gcc sanitizer.

This commit is contained in:
W.C.A. Wijngaards 2021-09-10 15:27:05 +02:00
parent a64cbe958d
commit 63a406a432
4 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
10 September 2021: Wouter 10 September 2021: Wouter
- Fix initialisation errors reported by gcc sanitizer. - Fix initialisation errors reported by gcc sanitizer.
- Fix lock debug code for gcc sanitizer reports. - Fix lock debug code for gcc sanitizer reports.
- Fix more initialisation errors reported by gcc sanitizer.
8 September 2021: Wouter 8 September 2021: Wouter
- Merged #41 from Moritz Schneider: made outbound-msg-retry - Merged #41 from Moritz Schneider: made outbound-msg-retry

View file

@ -571,8 +571,8 @@ int main(int argc, char** argv)
return 1; return 1;
} }
#endif #endif
log_init(0, 0, 0);
checklock_start(); checklock_start();
log_init(0, 0, 0);
h2_session = http2_session_create(); h2_session = http2_session_create();
if(!h2_session) fatal_exit("out of memory"); if(!h2_session) fatal_exit("out of memory");

View file

@ -575,9 +575,9 @@ int main(int argc, char* argv[])
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
info.io_num = 16; info.io_num = 16;
checklock_start();
log_init(NULL, 0, NULL); log_init(NULL, 0, NULL);
log_ident_set("perf"); log_ident_set("perf");
checklock_start();
#ifdef USE_WINSOCK #ifdef USE_WINSOCK
if((r = WSAStartup(MAKEWORD(2,2), &wsa_data)) != 0) if((r = WSAStartup(MAKEWORD(2,2), &wsa_data)) != 0)
fatal_exit("WSAStartup failed: %s", wsa_strerror(r)); fatal_exit("WSAStartup failed: %s", wsa_strerror(r));

View file

@ -437,8 +437,8 @@ int main(int argc, char** argv)
#endif #endif
/* lock debug start (if any) */ /* lock debug start (if any) */
log_init(0, 0, 0);
checklock_start(); checklock_start();
log_init(0, 0, 0);
#ifdef SIGPIPE #ifdef SIGPIPE
if(signal(SIGPIPE, &sigh) == SIG_ERR) { if(signal(SIGPIPE, &sigh) == SIG_ERR) {