comparison arogue7/misc.c @ 200:1cd604c827a3

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.
author John "Elwin" Edwards
date Wed, 12 Aug 2015 15:42:02 -0400
parents cadff8f047a1
children f9ef86cf22b2
comparison
equal deleted inserted replaced
199:efdbeec0816d 200:1cd604c827a3
275 275
276 do_bag(item) 276 do_bag(item)
277 register struct linked_list *item; 277 register struct linked_list *item;
278 { 278 {
279 279
280 register struct linked_list *titem; 280 register struct linked_list *titem = NULL;
281 register struct object *obj, *tobj; 281 register struct object *obj, *tobj;
282 bool doit = TRUE; 282 bool doit = TRUE;
283 283
284 obj = OBJPTR(item); 284 obj = OBJPTR(item);
285 while (doit) { 285 while (doit) {
836 } 836 }
837 837
838 use_mm(which) 838 use_mm(which)
839 int which; 839 int which;
840 { 840 {
841 register struct object *obj; 841 register struct object *obj = NULL;
842 register struct linked_list *item; 842 register struct linked_list *item = NULL;
843 bool cursed, blessed, is_mm; 843 bool cursed, blessed, is_mm;
844 844
845 cursed = FALSE; 845 cursed = FALSE;
846 is_mm = FALSE; 846 is_mm = FALSE;
847 847