Skip to content

Commit 30fb27f

Browse files
review: update Modules/socketmodule.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 5ca94e3 commit 30fb27f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ new_sockobject(socket_state *state, SOCKET_T fd, int family, int type,
11701170
/* Lock to allow python interpreter to continue, but only allow one
11711171
thread to be in gethostbyname or getaddrinfo */
11721172
#if defined(USE_GETHOSTBYNAME_LOCK)
1173-
static PyMutex netdb_lock;
1173+
static PyMutex netdb_lock = {0};
11741174
#endif
11751175

11761176

0 commit comments

Comments
 (0)