forked from github/server
22485 Dereference after null check
This commit is contained in:
parent
b81e56d306
commit
c68829029b
|
@ -2192,8 +2192,8 @@ static void travel(unit * u, region_list ** routep)
|
|||
region_list *route_begin = NULL;
|
||||
follower *followers = NULL;
|
||||
|
||||
if (routep)
|
||||
*routep = NULL;
|
||||
assert(routep);
|
||||
*routep = NULL;
|
||||
|
||||
/* a few pre-checks that need not be done for each step: */
|
||||
if (!fval(r->terrain, SEA_REGION)) {
|
||||
|
|
Loading…
Reference in New Issue