mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 14:22:18 -04:00
Sanity check for a nullptr
This commit is contained in:
1 parent
42ff711114
commit
a2b23de0a7
1 file changed
+3
-1
+3
-1
@@ -6812,7 +6812,9 @@ gb_internal CallArgumentData check_call_arguments_proc_group(CheckerContext *c,
|
||||
for_array(i, procs) {
|
||||
Entity *proc = procs[i];
|
||||
Type *t = base_type(proc->type);
|
||||
if (t->kind != Type_Proc) continue;
|
||||
if (t == nullptr || t->kind != Type_Proc) {
|
||||
continue;
|
||||
}
|
||||
|
||||
TypeProc *pt = &t->Proc;
|
||||
if (pt->param_count == 0) {
|
||||
|
||||
Reference in new issue
Block a user