mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virsh: fix return value in storage vol name completor
The function must return a pointer, not a boolean. Fortunately 'false' is equivalent to 'NULL' so this bug no had ill effect previously. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a470758468
commit
e97d7733fe
@ -287,7 +287,7 @@ virshStorageVolNameCompleter(vshControl *ctl,
|
||||
return NULL;
|
||||
|
||||
if (!(pool = virshCommandOptPool(ctl, cmd, "pool", NULL)))
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
if ((nvols = virStoragePoolListAllVolumes(pool, &vols, flags)) < 0)
|
||||
goto error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user