Fix nullref access violation when building with no entry point

This commit is contained in:
Jose Luis Rey Mendez
2021-03-06 20:02:16 -03:00
parent 4f1fb73f32
commit 4e8ec4ce38

View File

@@ -1907,7 +1907,7 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) {
array_add(&c->info.testing_procedures, e);
}
}
} else {
} else if (start != nullptr) {
start->flags |= EntityFlag_Used;
add_dependency_to_set(c, start);
}