summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-05 20:18:23 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-05-05 20:18:23 (GMT)
commitfee3acb0826e1c68bc9c0fa884501cdfcf2c80cc (patch)
tree31cb7b3a8eea16ecd6f6e4b39ad5b25cc9f8d6be /Objects
parenteb3fef59b96649e48260569a811040e7a2a7158f (diff)
downloadcpython-fee3acb0826e1c68bc9c0fa884501cdfcf2c80cc.zip
cpython-fee3acb0826e1c68bc9c0fa884501cdfcf2c80cc.tar.gz
cpython-fee3acb0826e1c68bc9c0fa884501cdfcf2c80cc.tar.bz2
Remove an unneeded variable assignment.
Found using Clang's static analyzer.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/tupleobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 7376f1a..143a62c 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -7,7 +7,7 @@
#ifndef PyTuple_MAXSAVESIZE
#define PyTuple_MAXSAVESIZE 20 /* Largest tuple to save on free list */
#endif
-#ifndef PyTuple_MAXFREELIST
+#ifndef PyTuple_MAXFREELIST
#define PyTuple_MAXFREELIST 2000 /* Maximum number of tuples of each size to save */
#endif
@@ -86,7 +86,6 @@ PyTuple_New(register Py_ssize_t size)
{
return PyErr_NoMemory();
}
- nbytes += sizeof(PyTupleObject) - sizeof(PyObject *);
op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size);
if (op == NULL)