Revert "fix crash on NULL gi.invent"
This reverts commit 378648bd9c.
The problem was triggered by marking the 'objlist' argument in
merge_choice() prototype with __attribute__((nonnull)) when it
shouldn't have been, then a followup which relied on that. The
'objlist' argument might be Null. Instead of passing its address to
force it to be non-Null, remove the attribute.
This commit is contained in:
@@ -1239,7 +1239,7 @@ extern Loot *sortloot(struct obj **, unsigned, boolean,
|
||||
boolean(*)(struct obj *)) NONNULLARG1;
|
||||
extern void unsortloot(Loot **) NONNULLARG1;
|
||||
extern void assigninvlet(struct obj *) NONNULLARG1;
|
||||
extern struct obj *merge_choice(struct obj **, struct obj *) NONNULLPTRS;
|
||||
extern struct obj *merge_choice(struct obj *, struct obj *) NONNULLPTRS;
|
||||
extern int merged(struct obj **, struct obj **) NONNULLPTRS;
|
||||
extern void addinv_core1(struct obj *) NONNULLARG1;
|
||||
extern void addinv_core2(struct obj *) NONNULLARG1;
|
||||
|
||||
Reference in New Issue
Block a user