From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 15 Aug 2019 16:46:47 +0000 (-0700) Subject: Indent code inside if block. (GH-15284) X-Git-Tag: v3.7.5rc1~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ac851fadf52ccaf8a14abe1b5e6a74bd6eec69e;p=thirdparty%2FPython%2Fcpython.git Indent code inside if block. (GH-15284) Without indendation, seems like strcpy line is parallel to `if` condition. (cherry picked from commit 69f37bcb28d7cd78255828029f895958b5baf6ff) Co-authored-by: Hansraj Das --- diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index e374c5a4aee6..d720f19eca9d 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1890,7 +1890,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;