[Numpy-svn] r6469 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Wed Feb 25 07:45:31 CST 2009


Author: oliphant
Date: 2009-02-25 07:45:30 -0600 (Wed, 25 Feb 2009)
New Revision: 6469

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
Add Error checking.

Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2009-02-25 05:29:33 UTC (rev 6468)
+++ trunk/numpy/core/src/scalartypes.inc.src	2009-02-25 13:45:30 UTC (rev 6469)
@@ -1451,6 +1451,7 @@
     PyObject *ret, *newargs;
 
     newargs = PyTuple_GetSlice(args, 0, 2);
+    if (newargs == NULL) return NULL;
     ret = gentype_generic_method((PyObject *)self, newargs, kwds, "getfield");
     Py_DECREF(newargs);
     if (!ret) {



More information about the Numpy-svn mailing list