From: Daniel P. Berrangé Date: Mon, 11 Feb 2019 14:21:35 +0000 (+0000) Subject: virsh: fix return value in storage vol name completor X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e97d7733fea2b6089ff706f19101f1226716350d;p=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 Signed-off-by: Daniel P. Berrangé --- diff --git a/tools/virsh-completer.c b/tools/virsh-completer.c index e62226fc13..7c68e2e832 100644 --- a/tools/virsh-completer.c +++ b/tools/virsh-completer.c @@ -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;