Skip to content

Commit

Permalink
Indent code inside if block. (pythonGH-15284)
Browse files Browse the repository at this point in the history
Without indendation, seems like strcpy line is parallel to `if` condition.
  • Loading branch information
hansrajdas authored and benjaminp committed Aug 15, 2019
1 parent 37806f4 commit 69f37bc
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 69f37bc

Please sign in to comment.