Fix (unreported) crash when accessing some bl_rna.properties.

E.g. typing `bpy.data.bl_rna.properties[8].<tab>` in console would hard-crash
trying to dereference NULL pointer. Was a missing check in rna_Property_tags_itemf().
This commit is contained in:
Bastien Montagne 2018-04-03 14:30:36 +02:00
parent b3004d30f5
commit 601835cd31
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ static const EnumPropertyItem *rna_Property_tags_itemf(
int totitem = 0;
for (const EnumPropertyItem *struct_tags = RNA_struct_property_tag_defines(srna);
struct_tags->identifier;
struct_tags != NULL && struct_tags->identifier != NULL;
struct_tags++)
{
memcpy(&tmp, struct_tags, sizeof(tmp));