Skip to content

Commit c9829f4

Browse files
committed
Move 'int err;' decl
1 parent 72c74e7 commit c9829f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_multiprocessing/semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,8 @@ _multiprocessing_SemLock_impl(PyTypeObject *type, int kind, int value,
12051205
SEM_HANDLE handle = SEM_FAILED;
12061206
PyObject *result;
12071207
char *name_copy = NULL;
1208-
int err = 0;
12091208
#ifdef HAVE_BROKEN_SEM_GETVALUE
1209+
int err = 0;
12101210
char mutex_name[SIZE_MUTEX_NAME];
12111211
SEM_HANDLE handle_mutex = SEM_FAILED;
12121212
CounterObject *counter = NULL;

0 commit comments

Comments
 (0)