trivial diff: mdb help bug fix

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Oct 21 09:23:44 AEST 1998


Estimated hours taken: 2

trace/mercury_trace_internal.c:
	Fix a bug: when printing help on the "help" command,
	look it up in the "help" category, not the "misc" category.
	This avoids an mdb internal error for a command such as
	"help help help help".

Index: trace/mercury_trace_internal.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_internal.c,v
retrieving revision 1.3
diff -u -r1.3 mercury_trace_internal.c
--- mercury_trace_internal.c	1998/10/16 10:15:49	1.3
+++ mercury_trace_internal.c	1998/10/20 23:17:39
@@ -1002,7 +1002,7 @@
 		} else if (word_count == 3) {
 			MR_trace_help_cat_item(words[1], words[2]);
 		} else {
-			MR_trace_help_cat_item("misc", "help");
+			MR_trace_help_cat_item("help", "help");
 		}
 #ifdef	MR_TRACE_HISTOGRAM
 	} else if (streq(words[0], "histogram_all")) {

-- 
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