From f8f7b52180440a0c41a76c36d50be2a349b6f6e0 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Fri, 6 Mar 2020 20:22:18 -0600 Subject: [PATCH] fix is_df_linked_list not checking if the type is null --- plugins/devel/check-structures-sanity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/devel/check-structures-sanity.cpp b/plugins/devel/check-structures-sanity.cpp index a0d9f3cce..0f4a29fa9 100644 --- a/plugins/devel/check-structures-sanity.cpp +++ b/plugins/devel/check-structures-sanity.cpp @@ -75,7 +75,7 @@ static void build_size_table() static bool is_df_linked_list(type_identity *type) { - if (type->type() != IDTYPE_STRUCT) + if (!type || type->type() != IDTYPE_STRUCT) return false; auto struct_type = static_cast(type);