mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
secret: Remove local virSecretPtr 'secret'
Remove the need for the local 'secret' in secretConnectListAllSecrets. A subsequent patch will rename the ObjPtr entry to secret. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
ea86edba9f
commit
bfd25584b4
@ -576,7 +576,6 @@ secretConnectListAllSecrets(virConnectPtr conn,
|
||||
virSecretPtr *tmp_secrets = NULL;
|
||||
int nsecrets = 0;
|
||||
int ret_nsecrets = 0;
|
||||
virSecretPtr secret = NULL;
|
||||
virSecretObjPtr entry = NULL;
|
||||
size_t i = 0;
|
||||
int ret = -1;
|
||||
@ -616,12 +615,12 @@ secretConnectListAllSecrets(virConnectPtr conn,
|
||||
continue;
|
||||
|
||||
if (secrets) {
|
||||
if (!(secret = virGetSecret(conn,
|
||||
entry->def->uuid,
|
||||
entry->def->usage_type,
|
||||
secretUsageIDForDef(entry->def))))
|
||||
if (!(tmp_secrets[ret_nsecrets] =
|
||||
virGetSecret(conn,
|
||||
entry->def->uuid,
|
||||
entry->def->usage_type,
|
||||
secretUsageIDForDef(entry->def))))
|
||||
goto cleanup;
|
||||
tmp_secrets[ret_nsecrets] = secret;
|
||||
}
|
||||
ret_nsecrets++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user