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

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


http://hg.python.org/cpython/rev/0b6f6514461e
changeset:   68770:0b6f6514461e
branch:      3.2
parent:      68763:ceeba01bdd82
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Sun Mar 20 23:23:22 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