diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-10-21 05:48:11 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-10-21 05:48:11 +0000 |
commit | 6b7adeef81f7a39b0333dfd571a0b5823a46e4d5 (patch) | |
tree | e42527bd9318cb07937f443c300db6e9e0b69977 /numpy/core/src | |
parent | b5a17594bc7e45f30fea4a651783361b6caaa294 (diff) | |
download | numpy-6b7adeef81f7a39b0333dfd571a0b5823a46e4d5.tar.gz |
Fix possible unitialized 'i' to fix #359
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/ufuncobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c index 32ff5308b..b7697502d 100644 --- a/numpy/core/src/ufuncobject.c +++ b/numpy/core/src/ufuncobject.c @@ -803,6 +803,7 @@ extract_specified_loop(PyUFuncObject *self, int *arg_types, else if (rtypenums[0] == funcdata->arg_types[self->nin]) { i = nargs; } + else i = -1; if (i == nargs) { *function = funcdata->func; *data = funcdata->data; @@ -831,6 +832,7 @@ extract_specified_loop(PyUFuncObject *self, int *arg_types, else if (rtypenums[0] == self->types[j*nargs+self->nin]) { i = nargs; } + else i = -1; if (i == nargs) { *function = self->functions[j]; *data = self->data[j]; |