Skip to content

Commit

Permalink
[mono] Initialize offset_entries (#66933)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-sf-ibm committed Mar 22, 2022
1 parent a484644 commit ad316ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/eventpipe/ep-rt-mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -2936,8 +2936,8 @@ ep_rt_mono_write_event_method_il_to_native_map (

MonoDebugMethodJitInfo *debug_info = method ? mono_debug_find_method (method, root_domain) : NULL;
if (debug_info) {
offset_entries = debug_info->num_line_numbers;
if (offset_entries != 0) {
offset_entries = debug_info->num_line_numbers;
size_t needed_size = (offset_entries * sizeof (uint32_t) * 2);
if (needed_size > sizeof (fixed_buffer)) {
buffer = g_new (uint8_t, needed_size);
Expand Down

0 comments on commit ad316ef

Please sign in to comment.