Browse Source

Fix nullref access violation when building with no entry point

Jose Luis Rey Mendez 4 years ago
parent
commit
4e8ec4ce38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/checker.cpp

+ 1 - 1
src/checker.cpp

@@ -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);
 	}