srogue: initialize some pointers.

MSVC complained that they might be used uninitialized.
This commit is contained in:
John "Elwin" Edwards 2015-08-01 21:23:55 -04:00
parent 097b315235
commit dea62ef934
2 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ struct linked_list *item;
bool silent;
{
reg struct linked_list *ip, *lp;
reg struct object *obj, *op;
reg struct object *obj, *op = NULL;
bool from_floor;
char delchar;
@ -292,7 +292,7 @@ get_item(purpose, type)
char *purpose;
int type;
{
reg struct linked_list *obj, *pit, *savepit;
reg struct linked_list *obj, *pit, *savepit = NULL;
struct object *pob;
int ch, och, anr, cnt;

View file

@ -24,7 +24,7 @@
do_passages()
{
reg struct rdes *r1, *r2;
reg struct rdes *r1, *r2 = NULL;
reg int i, j;
reg int roomcount;
static struct rdes {
@ -126,7 +126,7 @@ do_passages()
conn(r1, r2)
int r1, r2;
{
reg struct room *rpf, *rpt;
reg struct room *rpf, *rpt = NULL;
reg char rmt, direc;
reg int distance, turn_spot, turn_distance, rm;
struct coord curr, turn_delta, spos, epos;