fix is_df_linked_list not checking if the type is null

develop
Ben Lubar 2020-03-06 20:22:18 -06:00
parent 6465037432
commit f8f7b52180
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 1 additions and 1 deletions

@ -75,7 +75,7 @@ static void build_size_table()
static bool is_df_linked_list(type_identity *type) static bool is_df_linked_list(type_identity *type)
{ {
if (type->type() != IDTYPE_STRUCT) if (!type || type->type() != IDTYPE_STRUCT)
return false; return false;
auto struct_type = static_cast<struct_identity *>(type); auto struct_type = static_cast<struct_identity *>(type);