Re: hmmm.... db.c:free_char()

From: Mark A. Heilpern (heilpern@MINDSPRING.COM)
Date: 08/06/98


At 09:03 AM 8/6/98 -0400, you wrote:
>At the very end of this function, is there any reason not to do a ch=NULL;
right
>have the free(ch); call?  I think this might be a nice way to ensure
>consistancy.

ch, to free_char(), is a local variable. You can NULL it if you like, but if
you're just returning from the call next, noone will ever know the variable
was cleared.


     +------------------------------------------------------------+
     | 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/15/00 PST