[Numpy-svn] r6471 - branches/1.1.x/numpy/core/src

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Feb 25 08:46:14 EST 2009


Author: oliphant
Date: 2009-02-25 07:46:13 -0600 (Wed, 25 Feb 2009)
New Revision: 6471

Modified:
   branches/1.1.x/numpy/core/src/scalartypes.inc.src
Log:
Add Error checking on titles fix to 1.1.x branch

Modified: branches/1.1.x/numpy/core/src/scalartypes.inc.src
===================================================================
--- branches/1.1.x/numpy/core/src/scalartypes.inc.src	2009-02-25 13:45:53 UTC (rev 6470)
+++ branches/1.1.x/numpy/core/src/scalartypes.inc.src	2009-02-25 13:46:13 UTC (rev 6471)
@@ -1214,6 +1214,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) return ret;




More information about the Numpy-svn mailing list