summaryrefslogtreecommitdiff
path: root/src/util/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/snprintf.c')
-rw-r--r--src/util/snprintf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/snprintf.c b/src/util/snprintf.c
index 9ee9b8fe..e5170038 100644
--- a/src/util/snprintf.c
+++ b/src/util/snprintf.c
@@ -573,14 +573,14 @@ static LDOUBLE abs_val (LDOUBLE value)
return result;
}
-static LDOUBLE mypow10 (int exp)
+static LDOUBLE mypow10 (int exponent)
{
LDOUBLE result = 1;
- while (exp)
+ while (exponent)
{
result *= 10;
- exp--;
+ exponent--;
}
return result;
@@ -604,8 +604,8 @@ static int fmtfp (char *buffer, size_t *currlen, size_t maxlen,
int signvalue = 0;
LDOUBLE ufvalue;
LDOUBLE logvalue;
- long exponent;
- char expsign;
+ long exponent = 0;
+ char expsign = 0;
char iconvert[20];
char fconvert[20];
char econvert[20];