From 8ec37783e212866e345e5d49b653185871b84753 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 13 Sep 2016 21:13:26 +0200 Subject: [PATCH] fix nul-pointer access --- src/reports.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reports.c b/src/reports.c index 81abb408a..c94b7e8ff 100644 --- a/src/reports.c +++ b/src/reports.c @@ -1356,7 +1356,7 @@ void reorder_units(region * r) static region *lastregion(faction * f) { #ifdef SMART_INTERVALS - return f->last->next; + return f->last ? f->last->next : NULL; #else return NULL; #endif