diff --git a/rogue3/chase.c b/rogue3/chase.c index e681b28..38d1842 100644 --- a/rogue3/chase.c +++ b/rogue3/chase.c @@ -162,7 +162,7 @@ chase(struct thing *tp, coord *ee) 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 --git a/rogue3/move.c b/rogue3/move.c index d08eb96..2ccda00 100644 --- a/rogue3/move.c +++ b/rogue3/move.c @@ -339,7 +339,7 @@ rndmove(struct thing *who) 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 --git a/rogue3/pack.c b/rogue3/pack.c index 0f5df3c..835d433 100644 --- a/rogue3/pack.c +++ b/rogue3/pack.c @@ -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 --git a/rogue3/passages.c b/rogue3/passages.c index 4b4a315..0c38fd4 100644 --- a/rogue3/passages.c +++ b/rogue3/passages.c @@ -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 @@ do_passages() 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;