diff options
author | Brett Cannon <bcannon@gmail.com> | 2010-05-05 20:18:23 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2010-05-05 20:18:23 +0000 |
commit | fee3acb0826e1c68bc9c0fa884501cdfcf2c80cc (patch) | |
tree | 31cb7b3a8eea16ecd6f6e4b39ad5b25cc9f8d6be | |
parent | eb3fef59b96649e48260569a811040e7a2a7158f (diff) | |
download | cpython-git-fee3acb0826e1c68bc9c0fa884501cdfcf2c80cc.tar.gz |
Remove an unneeded variable assignment.
Found using Clang's static analyzer.
-rw-r--r-- | Objects/tupleobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 7376f1a12b..143a62c5e0 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) |