|
From: Lee K. <lki...@cs...> - 2003-08-27 15:17:31
|
You should be looking at the lowest levle, line 246 in magic.c - the
cause should be much more apparent there.
L.
Jason Gauthier writes:
> 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.
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
|