srogue: initialize some pointers.
MSVC complained that they might be used uninitialized.
This commit is contained in:
parent
097b315235
commit
dea62ef934
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue