Get rid of unused-but-set-variable warning. len and len2 should be equal and len2 is technically more correct, too.

This commit is contained in:
Christian Heimes 2015-04-21 10:57:41 +02:00
parent 4d9d2563f5
commit 8714cfdc4a
1 changed files with 1 additions and 1 deletions

View File

@ -9891,7 +9891,7 @@ os_confstr_impl(PyModuleDef *module, int name)
return PyErr_NoMemory();
len2 = confstr(name, buf, len);
assert(len == len2);
result = PyUnicode_DecodeFSDefaultAndSize(buf, len-1);
result = PyUnicode_DecodeFSDefaultAndSize(buf, len2-1);
PyMem_Free(buf);
}
else