diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-02-07 23:17:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-02-07 23:17:28 +0000 |
commit | aeaf38df7015f4650eed5aa3128f8e1716a68c61 (patch) | |
tree | 01d903c90eeb3d9dc2ad443a099a581f973bb5b7 /numpy/core/src/multiarraymodule.c | |
parent | a9a155c0aa11b0f843732a571f345dc1da4ff96e (diff) | |
download | numpy-aeaf38df7015f4650eed5aa3128f8e1716a68c61.tar.gz |
Fix possible segfault.
Diffstat (limited to 'numpy/core/src/multiarraymodule.c')
-rw-r--r-- | numpy/core/src/multiarraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c index 1f32e4cf4..715d3ad76 100644 --- a/numpy/core/src/multiarraymodule.c +++ b/numpy/core/src/multiarraymodule.c @@ -4039,7 +4039,7 @@ static int PyArray_OrderConverter(PyObject *object, NPY_ORDER *val) { char *str; - if (object == Py_None) { + if (object == NULL || object == Py_None) { *val = PyArray_ANYORDER; } else if (!PyString_Check(object) || PyString_GET_SIZE(object) < 1) { |