summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index a0d001fd3c..06f8eb2d09 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -869,7 +869,7 @@ static void _yred_mirrors_injury(int dam, int death_source)
static void _passive_freeze(kill_method_type death_type, const char *aux,
int death_source)
{
- const char *ptr = strstr(aux, "torment");
+ const char *ptr = aux ? strstr(aux, "torment") : NULL;
if (you.mutation[MUT_PASSIVE_FREEZE] && death_type == KILLED_BY_MONSTER
&& ptr == NULL)
{