From 6b7adeef81f7a39b0333dfd571a0b5823a46e4d5 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 21 Oct 2006 05:48:11 +0000 Subject: Fix possible unitialized 'i' to fix #359 --- numpy/core/src/ufuncobject.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/src') 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]; -- cgit v1.2.1