summaryrefslogtreecommitdiffstats
path: root/lib/libm/src
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-01-22 21:17:43 +0000
committermiod <miod@openbsd.org>2015-01-22 21:17:43 +0000
commitdc2b177cbe76779e0d8052c5f3807febef295c87 (patch)
treeb562991544fada2225c23e3642360b04a5730482 /lib/libm/src
parentheirarchy -> hierarchy; (diff)
downloadwireguard-openbsd-dc2b177cbe76779e0d8052c5f3807febef295c87.tar.xz
wireguard-openbsd-dc2b177cbe76779e0d8052c5f3807febef295c87.zip
Possibly uninitialized variable. From Clang via dhill.
Diffstat (limited to 'lib/libm/src')
-rw-r--r--lib/libm/src/e_expf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libm/src/e_expf.c b/lib/libm/src/e_expf.c
index 0e0bc542ee4..67e8fc49f1d 100644
--- a/lib/libm/src/e_expf.c
+++ b/lib/libm/src/e_expf.c
@@ -45,6 +45,7 @@ expf(float x) /* default IEEE double exp */
GET_FLOAT_WORD(hx,x);
xsb = (hx>>31)&1; /* sign bit of x */
hx &= 0x7fffffff; /* high word of |x| */
+ k = 0;
/* filter out non-finite argument */
if(hx >= 0x42b17218) { /* if |x|>=88.721... */
@@ -71,7 +72,6 @@ expf(float x) /* default IEEE double exp */
else if(hx < 0x31800000) { /* when |x|<2**-28 */
if(huge+x>one) return one+x;/* trigger inexact */
}
- else k = 0;
/* x is now in primary range */
t = x*x;