[runtime] Add a few missing error_init () calls to the mono_custom_attrs_from_.....
authorZoltan Varga <vargaz@gmail.com>
Thu, 22 Jun 2017 14:27:07 +0000 (10:27 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2017 14:27:07 +0000 (10:27 -0400)
mono/metadata/custom-attrs.c

index c7cde7e34cb33238f95414b678b2d7acff411ad7..b2dd518c3c88a3fdda80f90297deddbefd200c45 100644 (file)
@@ -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);