tests/math/decimal-test.c (canonicalise-string): Fix uninitialised return value
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 16 Feb 2015 08:17:12 +0000 (09:17 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 16 Feb 2015 08:17:12 +0000 (09:17 +0100)
tests/math/decimal-test.c

index e586b19d6915a91445bc98251fa3fa35cfece8b4..791483efa687803c9dd16d149e6d96f9b733b4e9 100644 (file)
@@ -37,7 +37,7 @@
 static char *
 canonicalise_string (const char *s)
 {
-  char *out;
+  char *out = NULL;
   char *dot = NULL;
   bool negative = false;
   char *p;