Mercurial > hg > early-roguelike
diff rogue3/pack.c @ 180:d9e44e18eeec
rogue3: initialize various pointers.
MSVC is afraid they might get used while uninitialized.
author | John "Elwin" Edwards |
---|---|
date | Fri, 31 Jul 2015 15:34:34 -0400 |
parents | 527e2150eaf0 |
children | e52a8a7ad4c5 |
line wrap: on
line diff
--- a/rogue3/pack.c Thu Jul 23 19:28:12 2015 -0400 +++ b/rogue3/pack.c Fri Jul 31 15:34:34 2015 -0400 @@ -22,8 +22,8 @@ void add_pack(struct linked_list *item, int silent) { - struct linked_list *ip, *lp; - struct object *obj, *op; + struct linked_list *ip, *lp = NULL; + struct object *obj, *op = NULL; int exact, from_floor; if (item == NULL)