Remove heartbeat support
[openssl.git] / test / bioprinttest.c
index d376cfb8e0d2c3f594535f718ab9e165bdf1d156..b2d26225e52cb54bfedd2808423b2eed97262d48 100644 (file)
@@ -92,7 +92,7 @@ static void dofptest(int test, double val, char *width, int prec, int *fail)
     int i;
 
     for (i = 0; i < 5; i++) {
-        char *fspec;
+        char *fspec = NULL;
         switch (i) {
         case 0:
             fspec = "e";
@@ -143,8 +143,8 @@ int main(int argc, char **argv)
     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];
 
@@ -197,12 +197,12 @@ int main(int argc, char **argv)
         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;
     }