Issue #28333: Remove unnecessary increment.

This commit is contained in:
Steve Dower 2016-10-08 12:20:45 -07:00
parent 3cd187b9f5
commit 59bd34fa8a
1 changed files with 1 additions and 1 deletions

View File

@ -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);