diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-20 22:09:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-20 22:09:03 (GMT) |
commit | 4ca2809b5c9dd9ffbad52d6c57113756365835fd (patch) | |
tree | 8334e9d77838ba50e6c1047fb008f1801088a0dc /Python/pythonrun.c | |
parent | 6ae1e7f04e9817dd4a92584c608469a47eea2f56 (diff) | |
download | cpython-4ca2809b5c9dd9ffbad52d6c57113756365835fd.zip cpython-4ca2809b5c9dd9ffbad52d6c57113756365835fd.tar.gz cpython-4ca2809b5c9dd9ffbad52d6c57113756365835fd.tar.bz2 |
Fix #11586: typo in initfsencoding()
Patch written by Ray Allen.
Diffstat (limited to 'Python/pythonrun.c')
-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); |