summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-10-08 12:20:45 -0700
committerSteve Dower <steve.dower@microsoft.com>2016-10-08 12:20:45 -0700
commit59bd34fa8a58ca787152ca1bfd589dde3656ea91 (patch)
tree3552484f2555f18bf8ff343f6bc226225545bbcf /Parser
parent3cd187b9f51f37e351d5ea4c8448b4769f8a3d9f (diff)
downloadcpython-git-59bd34fa8a58ca787152ca1bfd589dde3656ea91.tar.gz
Issue #28333: Remove unnecessary increment.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/myreadline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index 4f7a9fcc92..e40951ca33 100644
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -218,7 +218,7 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt)
int wlen;
wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
NULL, 0);
- if (wlen++ &&
+ if (wlen &&
(wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)))) {
wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
wbuf, wlen);