Catch taking size of null type

This should help catch similar errors in the future.
This commit is contained in:
Bill Currie 2019-06-18 10:39:17 +09:00
parent 0f1f477e64
commit b37c331e76

View file

@ -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: