From: Zoltan Varga Date: Thu, 22 Jun 2017 14:27:07 +0000 (-0400) Subject: [runtime] Add a few missing error_init () calls to the mono_custom_attrs_from_..... X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=522c8b69f5a433f645d15dc4ebb6a25b8266b414 [runtime] Add a few missing error_init () calls to the mono_custom_attrs_from_... functions. Fixes #57488. (#5076) --- diff --git a/mono/metadata/custom-attrs.c b/mono/metadata/custom-attrs.c index c7cde7e34cb..b2dd518c3c8 100644 --- a/mono/metadata/custom-attrs.c +++ b/mono/metadata/custom-attrs.c @@ -1297,6 +1297,8 @@ static MonoCustomAttrInfo* mono_custom_attrs_from_module (MonoImage *image, MonoError *error) { guint32 idx; + + error_init (error); if (image_is_dynamic (image)) return lookup_custom_attr (image, image); @@ -1322,6 +1324,8 @@ MonoCustomAttrInfo* mono_custom_attrs_from_property_checked (MonoClass *klass, MonoProperty *property, MonoError *error) { guint32 idx; + + error_init (error); if (image_is_dynamic (klass->image)) { property = mono_metadata_get_corresponding_property_from_generic_type_definition (property); @@ -1349,6 +1353,8 @@ MonoCustomAttrInfo* mono_custom_attrs_from_event_checked (MonoClass *klass, MonoEvent *event, MonoError *error) { guint32 idx; + + error_init (error); if (image_is_dynamic (klass->image)) { event = mono_metadata_get_corresponding_event_from_generic_type_definition (event);