瀏覽代碼

[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 年之前
父節點
當前提交
aae4a8d8fc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mono/metadata/object.c

+ 1 - 1
mono/metadata/object.c

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