diff options
author | Matt Caswell <matt@openssl.org> | 2016-05-27 15:59:47 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-27 15:59:47 +0200 |
commit | ec91f92ddf74bea473148674aff25410311edaab (patch) | |
tree | 944e81ff3f3adb41e26142c148b6304a3c1f7004 /test/bioprinttest.c | |
parent | Add a test for printing floating point format specifiers (diff) | |
download | openssl-ec91f92ddf74bea473148674aff25410311edaab.tar.xz openssl-ec91f92ddf74bea473148674aff25410311edaab.zip |
Silence some "may be uninitialized when used" warning
Clang was complaining about some variables possibly being uninitialized
when used. The warnings are bogus, but clang can't figure that out. This
silences the warnings.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/bioprinttest.c')
-rw-r--r-- | test/bioprinttest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bioprinttest.c b/test/bioprinttest.c index d376cfb8e0..c69a79c419 100644 --- a/test/bioprinttest.c +++ b/test/bioprinttest.c @@ -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]; |