]> xenbits.xensource.com Git - libvirt.git/commit
virsh-domain: Fix return of virshGetDBusDisplay() in one error path
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Feb 2024 12:28:31 +0000 (13:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Feb 2024 17:01:03 +0000 (18:01 +0100)
commitce41108eccd7688dd19cd4c2ba7fc2aa0080b2ad
treefd5a32f57d942ecf93add2b1e280daf84591aaa5
parent27b8b035a6bcc049fa6dc6dc991c5e510f26619b
virsh-domain: Fix return of virshGetDBusDisplay() in one error path

The virshGetDBusDisplay() function is declared to return a
pointer and yet, in one error path false is returned. Switch the
statement to return NULL, which is what other error paths use to
indicate an error.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c