qom: allow object_get_canonical_path_component without parent
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Apr 2018 09:44:17 +0000 (11:44 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2018 22:13:37 +0000 (00:13 +0200)
commit770dec2627b085457280490ac0543def97396fef
tree30d62cd3ed9b39f9ad07a5d650475a66f041bb8d
parent82870f3c0295d36c342942b4757b2b1ddd55ab19
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>
include/qom/object.h
qom/object.c