win: initialize INIT_ONCE field with dedicated initializer

Fixes: abc9767034 ("win: simplify uv_once implementation")
This commit is contained in:
Benjamin Gilbert 2024-10-17 18:41:50 -07:00
parent 919b92d944
commit 90b1b97603

View File

@ -279,7 +279,7 @@ typedef struct {
DWORD tls_index;
} uv_key_t;
#define UV_ONCE_INIT { 0, { NULL } }
#define UV_ONCE_INIT { 0, INIT_ONCE_STATIC_INIT }
typedef struct uv_once_s {
unsigned char unused;