Skip to content

Commit 7f6dd6a

Browse files
committed
nit
1 parent 5c2d141 commit 7f6dd6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/sha2module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ static PyObject *
258258
SHA256Type_copy_impl(SHA256object *self, PyTypeObject *cls)
259259
/*[clinic end generated code: output=fabd515577805cd3 input=3137146fcb88e212]*/
260260
{
261+
int rc;
261262
SHA256object *newobj;
262263
sha2_state *state = _PyType_GetModuleState(cls);
263264
if (Py_IS_TYPE(self, state->sha256_type)) {
@@ -272,7 +273,7 @@ SHA256Type_copy_impl(SHA256object *self, PyTypeObject *cls)
272273
}
273274

274275
ENTER_HASHLIB(self);
275-
int rc = SHA256copy(self, newobj);
276+
rc = SHA256copy(self, newobj);
276277
LEAVE_HASHLIB(self);
277278
if (rc < 0) {
278279
Py_DECREF(newobj);

0 commit comments

Comments
 (0)