summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-05-05 19:28:02 +0000
committerPauli Virtanen <pav@iki.fi>2010-05-05 19:28:02 +0000
commit63ef8711fa64c096720b413f06d6666bf8c3b49c (patch)
tree5b5c66a26cd2622009758fd1306e7957772e1b58
parent9836beacd161bf7409db703278006fc925477d0e (diff)
downloadnumpy-63ef8711fa64c096720b413f06d6666bf8c3b49c.tar.gz
BUG: core: ensure keywords[] list is NULL terminated in array_choose (might be related to #1476)
-rw-r--r--numpy/core/src/multiarray/methods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/methods.c b/numpy/core/src/multiarray/methods.c
index 11fe9f8ee..8b3f2d53f 100644
--- a/numpy/core/src/multiarray/methods.c
+++ b/numpy/core/src/multiarray/methods.c
@@ -984,7 +984,7 @@ array_repeat(PyArrayObject *self, PyObject *args, PyObject *kwds) {
static PyObject *
array_choose(PyArrayObject *self, PyObject *args, PyObject *kwds)
{
- static char *keywords[] = {"out", "mode"};
+ static char *keywords[] = {"out", "mode", NULL};
PyObject *choices;
PyArrayObject *out = NULL;
NPY_CLIPMODE clipmode = NPY_RAISE;