Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mono/mono/eventpipe/ep-event-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ ep_event_source_send_process_info (
os_info_utf16 = ep_rt_utf8_to_utf16_string (_ep_os_info, -1);
arch_info_utf16 = ep_rt_utf8_to_utf16_string (_ep_arch_info, -1);

EventData data [3] = { 0 };
EventData data [3] = { { 0 } };
if (command_line_utf16)
ep_event_data_init (&data[0], (uint64_t)command_line_utf16, (uint32_t)((ep_rt_utf16_string_len (command_line_utf16) + 1) * sizeof (ep_char16_t)), 0);
if (os_info_utf16)
Expand Down
6 changes: 3 additions & 3 deletions src/mono/mono/metadata/mono-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,7 @@ mono_config_for_assembly_internal (MonoImage *assembly)
MONO_REQ_GC_UNSAFE_MODE;

MonoConfigParseState state = {NULL};
int i;
char *aname, *cfg, *cfg_name;
char *cfg_name;
const char *bundled_config;

state.assembly = assembly;
Expand All @@ -684,14 +683,15 @@ mono_config_for_assembly_internal (MonoImage *assembly)

#ifndef DISABLE_CFGDIR_CONFIG
int got_it = 0;
char *aname, *cfg;
cfg_name = g_strdup_printf ("%s.config", mono_image_get_name (assembly));
const char *cfg_dir = mono_get_config_dir ();
if (!cfg_dir) {
g_free (cfg_name);
return;
}

for (i = 0; (aname = get_assembly_filename (assembly, i)) != NULL; ++i) {
for (int i = 0; (aname = get_assembly_filename (assembly, i)) != NULL; ++i) {
cfg = g_build_filename (cfg_dir, "mono", "assemblies", aname, cfg_name, (const char*)NULL);
got_it += mono_config_parse_file_with_context (&state, cfg);
g_free (cfg);
Expand Down
6 changes: 3 additions & 3 deletions src/mono/mono/mini/debugger-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -3598,9 +3598,9 @@ dbg_path_get_basename (const char *filename)
return g_strdup (&r[1]);
}

GENERATE_TRY_GET_CLASS_WITH_CACHE(hidden_klass, "System.Diagnostics", "DebuggerHiddenAttribute")
GENERATE_TRY_GET_CLASS_WITH_CACHE(step_through_klass, "System.Diagnostics", "DebuggerStepThroughAttribute")
GENERATE_TRY_GET_CLASS_WITH_CACHE(non_user_klass, "System.Diagnostics", "DebuggerNonUserCodeAttribute")
static GENERATE_TRY_GET_CLASS_WITH_CACHE(hidden_klass, "System.Diagnostics", "DebuggerHiddenAttribute")
static GENERATE_TRY_GET_CLASS_WITH_CACHE(step_through_klass, "System.Diagnostics", "DebuggerStepThroughAttribute")
static GENERATE_TRY_GET_CLASS_WITH_CACHE(non_user_klass, "System.Diagnostics", "DebuggerNonUserCodeAttribute")

static void
init_jit_info_dbg_attrs (MonoJitInfo *ji)
Expand Down