diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-04-30 11:44:17 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-05-09 00:13:37 +0200 |
commit | 770dec2627b085457280490ac0543def97396fef (patch) | |
tree | 30d62cd3ed9b39f9ad07a5d650475a66f041bb8d /include | |
parent | 82870f3c0295d36c342942b4757b2b1ddd55ab19 (diff) |
qom: allow object_get_canonical_path_component without parent
Just return NULL; any callers that cause a change in behavior
would have caused an assertion failure before, so this is safe.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qom/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qom/object.h b/include/qom/object.h index 96ce81bc5e..a0c78c76f7 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -1302,6 +1302,7 @@ Object *object_get_internal_root(void); * * Returns: The final component in the object's canonical path. The canonical * path is the path within the composition tree starting from the root. + * %NULL if the object doesn't have a parent (and thus a canonical path). */ gchar *object_get_canonical_path_component(Object *obj); |