Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Jun 2, 2022
1 parent 5134e17 commit 22d6181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runtime/runtime.m
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@ -(void) xamarinSetFlags: (enum XamarinGCHandleFlags) flags;
{
// COOP: this is a function executed only at startup, I believe the mode here doesn't matter.
char path [1024];
MonoAssembly *assembly;
bool exists = false;

#if MONOMAC
Expand All @@ -948,7 +947,7 @@ -(void) xamarinSetFlags: (enum XamarinGCHandleFlags) flags;
// Check if we already have the assembly in memory
xamarin_get_assembly_name_without_extension (name, path, sizeof (path));
MonoAssemblyName *aname = mono_assembly_name_new (path);
assembly = mono_assembly_loaded (aname);
MonoAssembly *assembly = mono_assembly_loaded (aname);
mono_assembly_name_free (aname);
if (assembly)
return assembly;
Expand Down

0 comments on commit 22d6181

Please sign in to comment.