Mercurial > hg > early-roguelike
comparison rogue3/pack.c @ 180:d9e44e18eeec
rogue3: initialize various pointers.
MSVC is afraid they might get used while uninitialized.
| author | John "Elwin" Edwards |
|---|---|
| date | Fri, 31 Jul 2015 15:34:34 -0400 |
| parents | 527e2150eaf0 |
| children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
| 172:c199a15a2c70 | 180:d9e44e18eeec |
|---|---|
| 20 * use it as the linked_list pointer instead of gettting it off the ground. | 20 * use it as the linked_list pointer instead of gettting it off the ground. |
| 21 */ | 21 */ |
| 22 void | 22 void |
| 23 add_pack(struct linked_list *item, int silent) | 23 add_pack(struct linked_list *item, int silent) |
| 24 { | 24 { |
| 25 struct linked_list *ip, *lp; | 25 struct linked_list *ip, *lp = NULL; |
| 26 struct object *obj, *op; | 26 struct object *obj, *op = NULL; |
| 27 int exact, from_floor; | 27 int exact, from_floor; |
| 28 | 28 |
| 29 if (item == NULL) | 29 if (item == NULL) |
| 30 { | 30 { |
| 31 from_floor = TRUE; | 31 from_floor = TRUE; |
