summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2009-02-25 13:46:13 +0000
committerTravis Oliphant <oliphant@enthought.com>2009-02-25 13:46:13 +0000
commitac94091dc27d3d061b3e53fd975c26e42021ddac (patch)
treea5deacf56b2169f5e43d04c92ce977317b66d325
parent40df7d6bd4faf907b4e68bfcb03a41fa0e4cb77c (diff)
downloadnumpy-ac94091dc27d3d061b3e53fd975c26e42021ddac.tar.gz
Add Error checking on titles fix to 1.1.x branch
-rw-r--r--numpy/core/src/scalartypes.inc.src1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src
index 40cde7841..7bf9f0552 100644
--- a/numpy/core/src/scalartypes.inc.src
+++ b/numpy/core/src/scalartypes.inc.src
@@ -1214,6 +1214,7 @@ voidtype_getfield(PyVoidScalarObject *self, PyObject *args, PyObject *kwds)
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;