Skip to content

Commit 275a125

Browse files
authored
[browser] Fix method declaration and initialization in corebindings.c (#121014)
1 parent 8a293ea commit 275a125

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mono/browser/runtime/corebindings.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,14 @@ void SystemInteropJS_AssemblyGetEntryPoint (char *assembly_name, int auto_insert
116116
{
117117
assert (assembly_name);
118118
*method_out = NULL;
119+
120+
MonoMethod *method = NULL;
121+
119122
MonoAssembly* assembly = _mono_wasm_assembly_load (assembly_name);
120123
if(!assembly)
121124
goto end;
122125

123126
MonoImage *image;
124-
MonoMethod *method = NULL;
125127

126128
image = mono_assembly_get_image (assembly);
127129
uint32_t entry = mono_image_get_entry_point (image);

0 commit comments

Comments
 (0)