summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-05 20:53:20 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-05-05 20:53:20 (GMT)
commit5335e77810d39670e0a36a888113aee56ddc34ec (patch)
treef0a08f28df5106172e69a14e93e233c7d174340c /Python/traceback.c
parent0b64be23890249d66af87fc1202a1231f3754636 (diff)
downloadcpython-5335e77810d39670e0a36a888113aee56ddc34ec.zip
cpython-5335e77810d39670e0a36a888113aee56ddc34ec.tar.gz
cpython-5335e77810d39670e0a36a888113aee56ddc34ec.tar.bz2
Remove an unneeded variable assignment.
Found using Clang's static analyzer.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 1c26ba2..53491ee 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -161,7 +161,6 @@ _Py_DisplaySourceLine(PyObject *f, const char *filename, int lineno, int indent)
strcpy(namebuf+len, tail);
xfp = fopen(namebuf, "r" PY_STDIOTEXTMODE);
if (xfp != NULL) {
- filename = namebuf;
break;
}
}