summaryrefslogtreecommitdiff
path: root/numpy/f2py/src
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-04-27 15:19:52 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-04-27 15:19:52 +0000
commit92e59def160e1d6c340e997fbcec0c01363bcf87 (patch)
treedc8bdf5561b881a2fd577ef1d42b89727b15b879 /numpy/f2py/src
parent808ea6e96da4b06398ff3a3a971e337e1c400b9f (diff)
downloadnumpy-92e59def160e1d6c340e997fbcec0c01363bcf87.tar.gz
Fix missing error check.
Diffstat (limited to 'numpy/f2py/src')
-rw-r--r--numpy/f2py/src/fortranobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/f2py/src/fortranobject.c b/numpy/f2py/src/fortranobject.c
index 4a1fe0cf4..3e6ccb079 100644
--- a/numpy/f2py/src/fortranobject.c
+++ b/numpy/f2py/src/fortranobject.c
@@ -543,6 +543,7 @@ PyArrayObject* array_from_pyobj(const int type_num,
NULL,NULL,0,
!(intent&F2PY_INTENT_C),
NULL);
+ if (arr==NULL) return NULL;
if (!(intent & F2PY_INTENT_CACHE))
PyArray_FILLWBYTE(arr, 0);
return arr;