Skip to content

Commit 9e058aa

Browse files
committed
Fix re-entrancy issue.
1 parent a04c3e9 commit 9e058aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/syslogmodule.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ syslog_openlog_impl(PyObject *module, PyObject *ident, long logopt,
189189
}
190190

191191
openlog(ident_str, logopt, facility);
192-
Py_XSETREF(S_ident_o, ident);
193192
_Py_atomic_store_int(&S_log_open, 1);
193+
Py_XSETREF(S_ident_o, ident);
194194

195195
Py_RETURN_NONE;
196196
}

0 commit comments

Comments
 (0)