mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-04-17 00:51:42 +00:00
object: Add assert to ensure uc is not null
This commit is contained in:
parent
a0c39b4996
commit
2dc6364de9
|
@ -1164,6 +1164,8 @@ const char *object_property_get_type(struct uc_struct *uc, Object *obj,
|
|||
|
||||
Object *object_get_root(struct uc_struct *uc)
|
||||
{
|
||||
assert(uc);
|
||||
|
||||
if (!uc->root) {
|
||||
uc->root = object_new(uc, "container");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue