Re: if (blah) ...

From: George Greer (greerga@circlemud.org)
Date: 08/19/99


On Thu, 19 Aug 1999, Peter Ajamian wrote:

>"Daniel A. Koepke" wrote:
>
>> On Aug 18, Chris Proctor spake to the list:
>>
>> > Can you then:
>> > free(blah);
>> > blah = NULL;
>> > if (blah) printf("This is still printed.\n");
>> > ?
>>
>> Yes, you can, and, in fact, it's done throughout the CircleMUD code.
>> Several instances can be found just in the nanny() function.
>
>Really?  Could you please point out one single instance where this is
>done in nanny?  I looked and could not find even one of the "several"
>instances you mention.

Line 1319.

Line 1388.

Basically just search for 'free_char' and 'free' if your line numbers are
different.

--
George Greer
greerga@circlemud.org


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



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