tests/math/decimal-test.c (canonicalise-string): Fix uninitialised return value
[pspp] / 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;