mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
|
||||
for (i = 0; i < nimages; i++)
|
||||
VIR_STEAL_PTR(names[i], images[i]->name);
|
||||
VIR_STEAL_PTR(names[i], images[i].name);
|
||||
|
||||
return names;
|
||||
|
||||
|
|
Loading…
Reference in New Issue