[m-rev.] trivial diff: fix uninitialized variable

Mark Brown dougl at cs.mu.OZ.AU
Tue Oct 22 22:50:02 AEST 2002


Estimated hours taken: 3
Branches: main

Fix a bug: an uninitialized variable.

trace/mercury_trace.c:
	Initialise MR_call_table_ptr_max in the function
	MR_init_call_table_array.

Index: trace/mercury_trace.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace.c,v
retrieving revision 1.55
diff -u -r1.55 mercury_trace.c
--- trace/mercury_trace.c	21 Oct 2002 14:36:37 -0000	1.55
+++ trace/mercury_trace.c	22 Oct 2002 11:49:13 -0000
@@ -1296,6 +1296,7 @@
 static void
 MR_init_call_table_array(void)
 {
+	MR_call_table_ptr_max = 0;
 	MR_call_table_ptr_next = 0;
 }
 
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list