Skip to content

Commit 64db5aa

Browse files
Indent code inside if block. (GH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition. (cherry picked from commit 69f37bc) Co-authored-by: Hansraj Das <[email protected]>
1 parent f781283 commit 64db5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
18211821
if (tok->encoding) {
18221822
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
18231823
if (encoding)
1824-
strcpy(encoding, tok->encoding);
1824+
strcpy(encoding, tok->encoding);
18251825
}
18261826
PyTokenizer_Free(tok);
18271827
return encoding;

0 commit comments

Comments
 (0)