Erm. Thinko Part II

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 11/03/97


On the ! history patch, that little section of code should be:

+  /* Clear the command history. */
+  if (d->history) {
+    int cnt;
+    for (cnt = 0; cnt < HISTORY_SIZE; cnt++)
+      if (d->history[cnt])
+       free(d->history[cnt]);
+    free(d->history);
+  }

It's not 'if (*d->...' because we don't care what is in it, only if there
is a pointer allocated.

I've updated the patch...

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST