Commit 8714cfdc authored by Christian Heimes's avatar Christian Heimes

Get rid of unused-but-set-variable warning. len and len2 should be equal and...

Get rid of unused-but-set-variable warning. len and len2 should be equal and len2 is technically more correct, too.
parent 4d9d2563
...@@ -9891,7 +9891,7 @@ os_confstr_impl(PyModuleDef *module, int name) ...@@ -9891,7 +9891,7 @@ os_confstr_impl(PyModuleDef *module, int name)
return PyErr_NoMemory(); return PyErr_NoMemory();
len2 = confstr(name, buf, len); len2 = confstr(name, buf, len);
assert(len == len2); assert(len == len2);
result = PyUnicode_DecodeFSDefaultAndSize(buf, len-1); result = PyUnicode_DecodeFSDefaultAndSize(buf, len2-1);
PyMem_Free(buf); PyMem_Free(buf);
} }
else else
......
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