int i;
for (i = 0; i < 5; i++) {
- char *fspec;
+ char *fspec = NULL;
switch (i) {
case 0:
fspec = "e";
int test = 0;
int i;
int fail = 0;
- int prec;
- char *width;
+ int prec = -1;
+ char *width = "";
const double frac = 2.0/3.0;
char buf[80];
dofptest(test++, 66.0 + frac, width, prec, &fail);
dofptest(test++, 666.0 + frac, width, prec, &fail);
dofptest(test++, 6666.0 + frac, width, prec, &fail);
- dofptest(test++, 66666.0 + frac, width, prec, &fail);
+ dofptest(test++, 66666.0 + frac, width, prec, &fail);
}
/* Test excessively big number. Should fail */
if (BIO_snprintf(buf, sizeof(buf), "%f\n", 2 * (double)ULONG_MAX) != -1) {
- printf("Test %d failed. Unexecpted success return from "
+ printf("Test %d failed. Unexpected success return from "
"BIO_snprintf()\n", test);
fail = 1;
}