additonal oextra care
Be deliberately careful with copies taken of oextra pointers and clear the pointer if it truly is a redundant copy that will become invalid if/when the original holder is deallocated.
This commit is contained in:
@@ -1233,7 +1233,7 @@ arti_invoke(obj)
|
||||
case TAMING: {
|
||||
struct obj pseudo;
|
||||
|
||||
pseudo = zeroobj; /* neither cursed nor blessed */
|
||||
pseudo = zeroobj; /* neither cursed nor blessed, zero oextra too */
|
||||
pseudo.otyp = SCR_TAMING;
|
||||
(void) seffects(&pseudo);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user