From b37c331e76f8fbec575f9ae142c8f0ec33faa6c8 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 18 Jun 2019 10:39:17 +0900 Subject: [PATCH] Catch taking size of null type This should help catch similar errors in the future. --- tools/qfcc/source/type.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index d3f286597..d99a89cc4 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -817,8 +817,6 @@ type_assignable (const type_t *dst, const type_t *src) int type_size (const type_t *type) { - if (!type) - return 0; switch (type->type) { case ev_void: case ev_string: