forked from github/server
CID 22484 Explicit null dereferenced
This commit is contained in:
parent
744246ab34
commit
64e8d4b094
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue