mirror of
https://github.com/python/cpython
synced 2024-09-04 15:56:13 +00:00
Indent code inside if block. (GH-15284)
Without indendation, seems like strcpy line is parallel to `if` condition.
This commit is contained in:
parent
37806f404f
commit
69f37bcb28
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue