mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
storage: rbd: do not attempt to dereference a non-pointer
My commit 9b7c4048fa0559fd81d57b7f7d13b1dccd6a99b2 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…
x
Reference in New Issue
Block a user