# HG changeset patch # User John "Elwin" Edwards # Date 1438371274 14400 # Node ID d9e44e18eeec2f7c322f99c903678f43927bdcb2 # Parent c199a15a2c70ca8c48e5d39388fd086956014b5a rogue3: initialize various pointers. MSVC is afraid they might get used while uninitialized. diff -r c199a15a2c70 -r d9e44e18eeec rogue3/chase.c --- a/rogue3/chase.c Thu Jul 23 19:28:12 2015 -0400 +++ b/rogue3/chase.c Fri Jul 31 15:34:34 2015 -0400 @@ -162,7 +162,7 @@ int x, y; int dist, thisdist; struct linked_list *item; - struct object *obj; + struct object *obj = NULL; coord *er = &tp->t_pos; int ch; diff -r c199a15a2c70 -r d9e44e18eeec rogue3/move.c --- a/rogue3/move.c Thu Jul 23 19:28:12 2015 -0400 +++ b/rogue3/move.c Fri Jul 31 15:34:34 2015 -0400 @@ -339,7 +339,7 @@ int ch; int ex, ey, nopen = 0; struct linked_list *item; - struct object *obj; + struct object *obj = NULL; static coord ret; /* what we will be returning */ static coord dest; diff -r c199a15a2c70 -r d9e44e18eeec rogue3/pack.c --- 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) diff -r c199a15a2c70 -r d9e44e18eeec rogue3/passages.c --- a/rogue3/passages.c Thu Jul 23 19:28:12 2015 -0400 +++ b/rogue3/passages.c Fri Jul 31 15:34:34 2015 -0400 @@ -22,7 +22,7 @@ void do_passages() { - struct rdes *r1, *r2; + struct rdes *r1, *r2 = NULL; int i, j; int roomcount; static struct rdes @@ -131,7 +131,7 @@ void conn(int r1, int r2) { - struct room *rpf, *rpt; + struct room *rpf, *rpt = NULL; int rmt; int distance, turn_spot, turn_distance; int rm;