mirror of
https://github.com/python/cpython
synced 2024-09-15 22:26:46 +00:00
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:
parent
4d9d2563f5
commit
8714cfdc4a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue