mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:03:33 +03:00
tests/server: fix initialization on Windows Vista+
Make sure to call `curlx_now_init()` before the first call to `curlx_now()`. Before this patch the first `curlx_now()` used the non-Vista code path calling `GetTickCount()` on Vista+. This is harmless, but the upcoming PR #18009 is going to drop the non-Vista code path, causing a division by zero at startup in test servers, without this fix. Bug: https://github.com/curl/curl/pull/18009#issuecomment-3652154307 Closes #19973
This commit is contained in:
parent
2399ec74c3
commit
b10b7c1fce
9 changed files with 5 additions and 40 deletions
|
|
@ -1100,11 +1100,6 @@ static int test_rtspd(int argc, char *argv[])
|
|||
snprintf(loglockfile, sizeof(loglockfile), "%s/%s/rtsp-%s.lock",
|
||||
logdir, SERVERLOGS_LOCKDIR, ipv_inuse);
|
||||
|
||||
#ifdef _WIN32
|
||||
if(win32_init())
|
||||
return 2;
|
||||
#endif
|
||||
|
||||
install_signal_handlers(false);
|
||||
|
||||
#ifdef USE_IPV6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue