[New-bugs-announce] [issue11586] Python/pythonrun.c: get_codec_name() typo

Ray.Allen report at bugs.python.org
Thu Mar 17 15:17:19 CET 2011


New submission from Ray.Allen <ysj.ray at gmail.com>:

I guess there is a typo in the source of this function:
Python/pythonrun.c: get_codec_name()


diff -r 48970d754841 Python/pythonrun.c
--- a/Python/pythonrun.c	Thu Mar 17 17:06:27 2011 +0800
+++ b/Python/pythonrun.c	Thu Mar 17 22:11:15 2011 +0800
@@ -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);

----------
components: Interpreter Core
messages: 131252
nosy: ysj.ray
priority: normal
severity: normal
status: open
title: Python/pythonrun.c: get_codec_name() typo
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11586>
_______________________________________


More information about the New-bugs-announce mailing list