Re: [NEWBIE][CODE}] Linked List Trouble :(

From: George (greerga@CIRCLEMUD.ORG)
Date: 04/27/98


On Mon, 27 Apr 1998, Pure Krome wrote:

>void increase_room_blood(int room)
>{
>        bool empty = TRUE;
>        struct blood_structure *temp;

You need to initialize that to NULL in this case or it'll end up as
unintelligable garbage. (I'm surprised it doesn't crash actually.)

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