Mercurial > hg > early-roguelike
comparison srogue/pack.c @ 183:7f5f5f1ba09c
srogue: initialize some pointers.
MSVC complained that they might be used uninitialized.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 01 Aug 2015 21:23:55 -0400 |
| parents | 2128c7dc8a40 |
| children | 94a0d9dd5ce1 |
comparison
equal
deleted
inserted
replaced
| 182:1fe660009fd3 | 183:7f5f5f1ba09c |
|---|---|
| 27 add_pack(item, silent) | 27 add_pack(item, silent) |
| 28 struct linked_list *item; | 28 struct linked_list *item; |
| 29 bool silent; | 29 bool silent; |
| 30 { | 30 { |
| 31 reg struct linked_list *ip, *lp; | 31 reg struct linked_list *ip, *lp; |
| 32 reg struct object *obj, *op; | 32 reg struct object *obj, *op = NULL; |
| 33 bool from_floor; | 33 bool from_floor; |
| 34 char delchar; | 34 char delchar; |
| 35 | 35 |
| 36 if (player.t_room == NULL) | 36 if (player.t_room == NULL) |
| 37 delchar = PASSAGE; | 37 delchar = PASSAGE; |
| 290 struct linked_list * | 290 struct linked_list * |
| 291 get_item(purpose, type) | 291 get_item(purpose, type) |
| 292 char *purpose; | 292 char *purpose; |
| 293 int type; | 293 int type; |
| 294 { | 294 { |
| 295 reg struct linked_list *obj, *pit, *savepit; | 295 reg struct linked_list *obj, *pit, *savepit = NULL; |
| 296 struct object *pob; | 296 struct object *pob; |
| 297 int ch, och, anr, cnt; | 297 int ch, och, anr, cnt; |
| 298 | 298 |
| 299 if (pack == NULL) { | 299 if (pack == NULL) { |
| 300 msg("You aren't carrying anything."); | 300 msg("You aren't carrying anything."); |
