|
From: Joerg B. <jo...@we...> - 2003-08-27 15:19:06
|
Jason Gauthier wrote:
> ==20872== Conditional jump or move depends on uninitialised value(s)
> ==20872== at 0x81361A0: check_dispel (magic.c:246)
> ==20872== by 0x8123B6F: char_to_room (handler.c:1904)
> ==20872== by 0x81024BC: reset_room (db.c:2797)
> ==20872== by 0x8102B1B: reset_area (db.c:2990)
>
> So,I look at reset_area:
>
> void reset_area(AREA_DATA * pArea)
> {
> 2997: long vnum=0;
> 2988: for (vnum = pArea->min_vnum; vnum <= pArea->max_vnum; vnum++) {
> 2989: if (pRoomArray[vnum]){
> 2990: reset_room(pRoomArray[vnum]);
> }
> }
> return;
> }
>
> Obviously, I have initialized vnum to 0 here.
only if pArea->min_vnum is initialized, else vnum has been initialized
and then was overwritten with some uninitialized.
> So does that mean pRoomArray is not initialized? It's a global array, and I
> thought they were initialized to NULL.
Joerg
|