static analyzer bit for priest.c
src/priest.c(865): warning: Dereferencing NULL pointer '((priest))->mextra->emin'.
This commit is contained in:
@@ -862,6 +862,7 @@ angry_priest(void)
|
|||||||
newemin(priest);
|
newemin(priest);
|
||||||
priest->ispriest = 0; /* now a roaming minion */
|
priest->ispriest = 0; /* now a roaming minion */
|
||||||
priest->isminion = 1;
|
priest->isminion = 1;
|
||||||
|
assert(has_emin(priest));
|
||||||
EMIN(priest)->min_align = eprip->shralign;
|
EMIN(priest)->min_align = eprip->shralign;
|
||||||
EMIN(priest)->renegade = FALSE;
|
EMIN(priest)->renegade = FALSE;
|
||||||
/* discard priest's memory of his former shrine;
|
/* discard priest's memory of his former shrine;
|
||||||
|
|||||||
Reference in New Issue
Block a user