Don't append -ansi to AM_CFLAGS for GCC. Using -ansi changes the
[pspp] / src / str.c
index 2a766520b135f8d01b01b7ca0a638c589fe459de..d497078a585f1a994cf11be3a19e3ee0f894adbf 100644 (file)
--- a/src/str.c
+++ b/src/str.c
@@ -306,6 +306,7 @@ void
 ds_destroy (struct string *st)
 {
   free (st->string);
+  st->string = NULL;
 }
 
 /* Truncates ST to zero length. */