Fix a possible NULL pointer dereference (coverity bug id 32)

svn path=/trunk/; revision=17497
This commit is contained in:
Lars Roland 2006-03-07 14:44:25 +00:00
parent 65f5262bb6
commit 1816f28559
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ extern int stats_tree_tick_range(stats_tree* st,
}
if ( node == NULL )
return node->id;
g_assert_not_reached();
for ( child = node->children; child; child = child->next) {
floor = child->rng->floor;