CID 22484 Explicit null dereferenced

This commit is contained in:
Enno Rehling 2015-11-05 08:50:01 +01:00
parent 744246ab34
commit 64e8d4b094
1 changed files with 1 additions and 1 deletions

View File

@ -1321,7 +1321,7 @@ static const region_list *cap_route(region * r, const region_list * route,
region *current = r;
int moves = speed;
const region_list *iroute = route;
while (iroute != route_end) {
while (iroute && iroute != route_end) {
region *next = iroute->data;
direction_t reldir = reldirection(current, next);