summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-15 11:16:59 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-15 11:16:59 (GMT)
commit6a4aff10f0f1c34f488d5d0f932eea1fb3483dbf (patch)
treed3ebf8b024522c30e4550333b2a87b795d0a1433
parent5d1e3438cde1d93db84f941c2226f14806c3b8b6 (diff)
downloadcpython-6a4aff10f0f1c34f488d5d0f932eea1fb3483dbf.zip
cpython-6a4aff10f0f1c34f488d5d0f932eea1fb3483dbf.tar.gz
cpython-6a4aff10f0f1c34f488d5d0f932eea1fb3483dbf.tar.bz2
redecode_filename(): don't need to initialize variables
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 012c1b8..026fcfa 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -725,7 +725,7 @@ static PyObject*
redecode_filename(PyObject *file, const char *new_encoding,
const char *errors)
{
- PyObject *file_bytes = NULL, *new_file = NULL;
+ PyObject *file_bytes, *new_file;
file_bytes = PyUnicode_EncodeFSDefault(file);
if (file_bytes == NULL)