Skip to content

Commit

Permalink
Indent code inside if block. (GH-15284)
Browse files Browse the repository at this point in the history
Without indendation, seems like strcpy line is parallel to `if` condition.
(cherry picked from commit 69f37bc)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
  • Loading branch information
miss-islington and hansrajdas authored Aug 15, 2019
1 parent f781283 commit 64db5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
if (tok->encoding) {
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
if (encoding)
strcpy(encoding, tok->encoding);
strcpy(encoding, tok->encoding);
}
PyTokenizer_Free(tok);
return encoding;
Expand Down

0 comments on commit 64db5aa

Please sign in to comment.