2
0
Эх сурвалжийг харах

[runtime] Fix return of uninit value (#11823)

We have a return on line 3608 that doesn't have an
obvioius assignment to the variable "o" before that.
Alexander Kyte 7 жил өмнө
parent
commit
aae4a8d8fc

+ 1 - 1
mono/metadata/object.c

@@ -3527,7 +3527,7 @@ mono_field_get_value_object_checked (MonoDomain *domain, MonoClassField *field,
 
 
 	error_init (error);
 	error_init (error);
 
 
-	MonoObject *o;
+	MonoObject *o = NULL;
 	MonoClass *klass;
 	MonoClass *klass;
 	MonoVTable *vtable = NULL;
 	MonoVTable *vtable = NULL;
 	gpointer v;
 	gpointer v;