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 New Issue