summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-02-07 23:17:28 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-02-07 23:17:28 +0000
commitaeaf38df7015f4650eed5aa3128f8e1716a68c61 (patch)
tree01d903c90eeb3d9dc2ad443a099a581f973bb5b7 /numpy/core/src
parenta9a155c0aa11b0f843732a571f345dc1da4ff96e (diff)
downloadnumpy-aeaf38df7015f4650eed5aa3128f8e1716a68c61.tar.gz
Fix possible segfault.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarraymodule.c2
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) {