diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-20 23:28:52 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-20 23:28:52 (GMT) |
commit | 25871dac0091cf99e8e35271606b87898d9c4c45 (patch) | |
tree | 0805f90019dc5b90763be24f4e0ca2037e0188f8 /Python/pythonrun.c | |
parent | cb342182ee47c3e2c743de50d81aad60f4eebefd (diff) | |
parent | e0daff1c61e323d2a39dd8241de67082d1f10fd7 (diff) | |
download | cpython-25871dac0091cf99e8e35271606b87898d9c4c45.zip cpython-25871dac0091cf99e8e35271606b87898d9c4c45.tar.gz cpython-25871dac0091cf99e8e35271606b87898d9c4c45.tar.bz2 |
Merge
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); |