diff options
author | cookedm <cookedm@localhost> | 2006-05-16 23:30:55 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-05-16 23:30:55 +0000 |
commit | 38c83aba3369696b4d3053e2081dd490c7a18c66 (patch) | |
tree | 88e07a9be7422d6a87e288c46b911486384610f9 /numpy/core/src/scalarmathmodule.c.src | |
parent | 7b4dcf86bf4a27007a9b29dd20ce087f4e522a39 (diff) | |
download | numpy-38c83aba3369696b4d3053e2081dd490c7a18c66.tar.gz |
Initialize a potentially uninitialized variable in scalarmathmodule
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r-- | numpy/core/src/scalarmathmodule.c.src | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index 643be746a..0c23153ee 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -597,14 +597,16 @@ static PyObject * @name@_power(PyObject *a, PyObject *b, PyObject *c) { PyObject *ret; - @name@ arg1, arg2, out; + @name@ arg1, arg2; int retstatus; #if @cmplx@ + @name@ out = {0,0}; @otyp@ out1; out1.real = out.imag = 0; #else - @otyp@ out1=0; + @name@ out = 0; + @otyp@ out1=0; #endif switch(_@name@_convert2_to_ctypes(a, &arg1, b, &arg2)) { |