mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue