diff options
author | Christian Heimes <christian@python.org> | 2015-04-21 08:57:41 (GMT) |
---|---|---|
committer | Christian Heimes <christian@python.org> | 2015-04-21 08:57:41 (GMT) |
commit | 8714cfdc4aeedce96fb40c73f7226535fbe7833f (patch) | |
tree | 5104b12973a92ed68849dcb7e13021baabc0d32c /Modules | |
parent | 4d9d2563f51edad448a960d9490a6f56ac733735 (diff) | |
download | cpython-8714cfdc4aeedce96fb40c73f7226535fbe7833f.zip cpython-8714cfdc4aeedce96fb40c73f7226535fbe7833f.tar.gz cpython-8714cfdc4aeedce96fb40c73f7226535fbe7833f.tar.bz2 |
Get rid of unused-but-set-variable warning. len and len2 should be equal and len2 is technically more correct, too.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 90d820f..ce34b3b 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 |