Skip to content

Commit

Permalink
Fix use of uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Apr 6, 2024
1 parent 5f0d6c0 commit f151eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/metadata/metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -6353,7 +6353,7 @@ mono_metadata_field_info_full (MonoImage *meta, guint32 index, guint32 *offset,

guint32 idx = index + 1;
if (meta->uncompressed_metadata)
idx = search_ptr_table (meta, MONO_TABLE_FIELD_POINTER, loc.idx);
idx = search_ptr_table (meta, MONO_TABLE_FIELD_POINTER, idx);

if (offset) {
tdef = &meta->tables [MONO_TABLE_FIELDLAYOUT];
Expand Down

0 comments on commit f151eae

Please sign in to comment.