projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f8a1ab5
)
[runtime] Add a few missing error_init () calls to the mono_custom_attrs_from_.....
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 22 Jun 2017 14:27:07 +0000
(10:27 -0400)
committer
GitHub
<noreply@github.com>
Thu, 22 Jun 2017 14:27:07 +0000
(10:27 -0400)
mono/metadata/custom-attrs.c
patch
|
blob
|
history
diff --git
a/mono/metadata/custom-attrs.c
b/mono/metadata/custom-attrs.c
index c7cde7e34cb33238f95414b678b2d7acff411ad7..b2dd518c3c88a3fdda80f90297deddbefd200c45 100644
(file)
--- 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;
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);
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;
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);
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;
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);
if (image_is_dynamic (klass->image)) {
event = mono_metadata_get_corresponding_event_from_generic_type_definition (event);