Commit 69f37bcb authored by Hansraj Das's avatar Hansraj Das Committed by Benjamin Peterson

Indent code inside if block. (GH-15284)

Without indendation, seems like strcpy line is parallel to `if` condition.
parent 37806f40
...@@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename) ...@@ -1821,7 +1821,7 @@ PyTokenizer_FindEncodingFilename(int fd, PyObject *filename)
if (tok->encoding) { if (tok->encoding) {
encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1); encoding = (char *)PyMem_MALLOC(strlen(tok->encoding) + 1);
if (encoding) if (encoding)
strcpy(encoding, tok->encoding); strcpy(encoding, tok->encoding);
} }
PyTokenizer_Free(tok); PyTokenizer_Free(tok);
return encoding; return encoding;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment