We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c2d141 commit 7f6dd6aCopy full SHA for 7f6dd6a
Modules/sha2module.c
@@ -258,6 +258,7 @@ static PyObject *
258
SHA256Type_copy_impl(SHA256object *self, PyTypeObject *cls)
259
/*[clinic end generated code: output=fabd515577805cd3 input=3137146fcb88e212]*/
260
{
261
+ int rc;
262
SHA256object *newobj;
263
sha2_state *state = _PyType_GetModuleState(cls);
264
if (Py_IS_TYPE(self, state->sha256_type)) {
@@ -272,7 +273,7 @@ SHA256Type_copy_impl(SHA256object *self, PyTypeObject *cls)
272
273
}
274
275
ENTER_HASHLIB(self);
- int rc = SHA256copy(self, newobj);
276
+ rc = SHA256copy(self, newobj);
277
LEAVE_HASHLIB(self);
278
if (rc < 0) {
279
Py_DECREF(newobj);
0 commit comments