Skip to content

Commit add8820

Browse files
Fix NULL test in _testinternalcapi (GH-92861)
(cherry picked from commit 702e0da) Co-authored-by: Dennis Sweeney <[email protected]>
1 parent 006b302 commit add8820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testinternalcapi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ check_edit_cost(const char *a, const char *b, Py_ssize_t expected)
292292
goto exit;
293293
}
294294
b_obj = PyUnicode_FromString(b);
295-
if (a_obj == NULL) {
295+
if (b_obj == NULL) {
296296
goto exit;
297297
}
298298
Py_ssize_t result = _Py_UTF8_Edit_Cost(a_obj, b_obj, -1);

0 commit comments

Comments
 (0)