mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
storage: rbd: do not attempt to dereference a non-pointer
My commit 9b7c4048fa
was too blind
and my librbd was not new enough to actually compile this part.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
68c4d62046
commit
b632e00ffb
@ -637,7 +637,7 @@ virStorageBackendRBDGetVolNames(virStorageBackendRBDStatePtr ptr)
|
|||||||
nnames = nimages;
|
nnames = nimages;
|
||||||
|
|
||||||
for (i = 0; i < nimages; i++)
|
for (i = 0; i < nimages; i++)
|
||||||
VIR_STEAL_PTR(names[i], images[i]->name);
|
VIR_STEAL_PTR(names[i], images[i].name);
|
||||||
|
|
||||||
return names;
|
return names;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user