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