diff --git a/tools/virsh-completer.c b/tools/virsh-completer.c index e62226fc132014646499a3ad1a8c335dac9b8b75..7c68e2e832e2d4b26f900bc4953da658a0d5c5ee 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;