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:
Ján Tomko 2019-07-12 17:47:11 +02:00
parent 68c4d62046
commit b632e00ffb
1 changed files with 1 additions and 1 deletions

View File

@ -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;