This commit is contained in:
Ginger Bill
2016-09-28 21:25:14 +01:00
parent 5f6b0942f4
commit 6e39a42c8a
8 changed files with 95 additions and 39 deletions
+3 -1
View File
@@ -256,7 +256,9 @@ struct CycleChecker {
};
CycleChecker *cycle_checker_add(CycleChecker *cc, Entity *e) {
GB_ASSERT(cc != NULL);
if (cc == NULL) {
return NULL;
}
if (cc->path == NULL) {
gb_array_init(cc->path, gb_heap_allocator());
}