diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-04-27 15:19:52 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-04-27 15:19:52 +0000 |
commit | 92e59def160e1d6c340e997fbcec0c01363bcf87 (patch) | |
tree | dc8bdf5561b881a2fd577ef1d42b89727b15b879 /numpy/f2py | |
parent | 808ea6e96da4b06398ff3a3a971e337e1c400b9f (diff) | |
download | numpy-92e59def160e1d6c340e997fbcec0c01363bcf87.tar.gz |
Fix missing error check.
Diffstat (limited to 'numpy/f2py')
-rw-r--r-- | numpy/f2py/src/fortranobject.c | 1 |
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; |