Advanced Rogue 7: initialize multiple variables.
MSVC complained that they might be used uninitialized. In some cases, this might have been possible. XRogue already has initializations for all these variables.
This commit is contained in:
parent
b41fb230b0
commit
295a180ea1
12 changed files with 23 additions and 23 deletions
|
|
@ -34,8 +34,8 @@ add_pack(item, silent, packret)
|
|||
register struct linked_list *item, **packret;
|
||||
bool silent;
|
||||
{
|
||||
register struct linked_list *ip, *lp, *ap;
|
||||
register struct object *obj, *op;
|
||||
register struct linked_list *ip, *lp = NULL, *ap;
|
||||
register struct object *obj, *op = NULL;
|
||||
register bool exact, from_floor;
|
||||
|
||||
if (packret != NULL)
|
||||
|
|
@ -576,7 +576,7 @@ bool askfirst, showcost;
|
|||
reg struct linked_list *item;
|
||||
reg struct object *obj;
|
||||
reg int cnt, pagecnt, ch, och, maxx, curx, confused;
|
||||
struct linked_list *saveitem;
|
||||
struct linked_list *saveitem = NULL;
|
||||
char description[2*LINELEN+1];
|
||||
char cost[LINELEN/2];
|
||||
#ifdef PC7300
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue