]> granicus.if.org Git - python/commitdiff
Remove an unneeded variable assignment.
authorBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:18:23 +0000 (20:18 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:18:23 +0000 (20:18 +0000)
Found using Clang's static analyzer.

Objects/tupleobject.c

index 7376f1a12bf6d4835573cd94713ff50e6db7eb00..143a62c5e00a936a9d7649df56562cc4ce9b7051 100644 (file)
@@ -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)