diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-20 22:23:22 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-20 22:23:22 (GMT) |
commit | 9c4efe571d73ea85489be34bb75dac923805068a (patch) | |
tree | 7386094bf8f2d41f50ae616d5d918f0dd5a27ddd /Python | |
parent | d40248777b7221393525c0e0c6864d2f6054f50b (diff) | |
download | cpython-9c4efe571d73ea85489be34bb75dac923805068a.zip cpython-9c4efe571d73ea85489be34bb75dac923805068a.tar.gz cpython-9c4efe571d73ea85489be34bb75dac923805068a.tar.bz2 |
Fix #11586: typo in initfsencoding()
Patch written by Ray Allen.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 8e97d7f..38b2ab8 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -147,7 +147,7 @@ get_codec_name(const char *encoding) goto error; name_utf8 = _PyUnicode_AsString(name); - if (name == NULL) + if (name_utf8 == NULL) goto error; name_str = strdup(name_utf8); Py_DECREF(name); |