mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Fix secret_driver compile warning, bug.
Set def to NULL in secretLoad(), otherwise we can access a random pointer on error. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
580ad29288
commit
ce37c3a109
@ -432,7 +432,7 @@ static virSecretEntryPtr
|
|||||||
secretLoad(virConnectPtr conn, virSecretDriverStatePtr driver,
|
secretLoad(virConnectPtr conn, virSecretDriverStatePtr driver,
|
||||||
const char *xml_basename)
|
const char *xml_basename)
|
||||||
{
|
{
|
||||||
virSecretDefPtr def;
|
virSecretDefPtr def = NULL;
|
||||||
virSecretEntryPtr secret = NULL, ret = NULL;
|
virSecretEntryPtr secret = NULL, ret = NULL;
|
||||||
char *xml_filename;
|
char *xml_filename;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user