diff Modules/arraymodule.c @ 68102:e2f96bd29252

Issue #8914: fix various warnings from the Clang static analyzer v254.
author Brett Cannon <bcannon@gmail.com>
date Tue, 22 Feb 2011 20:15:44 +0000
parents 2581a17b29af
children b39270c6b8d1
line wrap: on
line diff
--- a/Modules/arraymodule.c	Tue Feb 22 19:24:33 2011 +0000
+++ b/Modules/arraymodule.c	Tue Feb 22 20:15:44 2011 +0000
@@ -876,7 +876,6 @@
     if (Py_SIZE(self) > 0) {
         if (n < 0)
             n = 0;
-        items = self->ob_item;
         if ((self->ob_descr->itemsize != 0) &&
             (Py_SIZE(self) > PY_SSIZE_T_MAX / self->ob_descr->itemsize)) {
             return PyErr_NoMemory();