8000 PEP-7 · python/cpython@1e035db · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e035db

Browse files
committed
1 parent 75be6ba commit 1e035db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/bytesobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2554,8 +2554,9 @@ _PyBytes_FromHex(PyObject *string, int use_bytearray)
25542554

25552555
/* This overestimates if there are spaces */
25562556
buf = _PyBytesWriter_Alloc(&writer, hexlen / 2);
2557-
if (buf == NULL)
2557+
if (buf == NULL) {
25582558
goto release_buffer;
2559+
}
25592560

25602561
start = str;
25612562
end = str + hexlen;

0 commit comments

Comments
 (0)
0