[Python-checkins] cpython: Fix #11586: typo in initfsencoding()

victor.stinner python-checkins at python.org
Sun Mar 20 23:09:22 CET 2011


http://hg.python.org/cpython/rev/929aafef5b05
changeset:   68769:929aafef5b05
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Sun Mar 20 23:09:03 2011 +0100
summary:
  Fix #11586: typo in initfsencoding()

Patch written by Ray Allen.

files:
  Python/pythonrun.c

diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -147,7 +147,7 @@
         goto error;
 
     name_utf8 = _PyUnicode_AsString(name);
-    if (name == NULL)
+    if (name_utf8 == NULL)
         goto error;
     name_str = strdup(name_utf8);
     Py_DECREF(name);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list