trivial diff: trace/mercury_trace_internal.c bug fix

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Nov 6 02:37:36 AEDT 1998


trace/mercury_trace_internal.c:
	Fix a bug: initialize orig_words to NULL, to make sure
	that we don't call free() on an uninitialized variable.

Index: trace/mercury_trace_internal.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_internal.c,v
retrieving revision 1.7
diff -u -r1.7 mercury_trace_internal.c
--- mercury_trace_internal.c	1998/11/04 03:42:10	1.7
+++ mercury_trace_internal.c	1998/11/05 15:29:37
@@ -368,7 +368,7 @@
 	int *ancestor_level, int *max_mr_num, Code **jumpaddr)
 {
 	char		**words;
-	char		**orig_words;
+	char		**orig_words = NULL;
 	int		word_max;
 	int		word_count;
 	const char	*problem;

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list