From fee3acb0826e1c68bc9c0fa884501cdfcf2c80cc Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 5 May 2010 20:18:23 +0000 Subject: [PATCH] Remove an unneeded variable assignment. Found using Clang's static analyzer. --- Objects/tupleobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 7376f1a12bf..143a62c5e00 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)