summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-09-30 18:37:47 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-09-30 18:39:25 +0200
commitebe4ce7a8517f247b8310ee886bb935d4c0d1550 (patch)
tree641e9df0a4500252cf49645480e6e7e691f18066
parent0e195abba8b1a7744b0a3c4d5e9331a1b54d5541 (diff)
downloadnumpy-ebe4ce7a8517f247b8310ee886bb935d4c0d1550.tar.gz
MAINT: fix another wrong NULL check
silences cppcheck error, not a bug as the only caller checks the python error.
-rw-r--r--numpy/core/src/multiarray/ctors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index 0a3534070..d0b75b47a 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -2960,7 +2960,7 @@ _calc_length(PyObject *start, PyObject *stop, PyObject *step, PyObject **next, i
}
if (len > 0) {
*next = PyNumber_Add(start, step);
- if (!next) {
+ if (!*next) {
return -1;
}
}