|
From: Jason G. <jga...@la...> - 2003-08-27 14:57:50
|
This is driving me crazy.
Maybe I just don't completely understand what I'm looking for. Can someone
offer an idea?
==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.
So does that mean pRoomArray is not initialized? It's a global array, and I
thought they were initialized to NULL.
|