]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: rbd: do not attempt to dereference a non-pointer
authorJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2019 15:47:11 +0000 (17:47 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2019 15:51:39 +0000 (17:51 +0200)
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>
src/storage/storage_backend_rbd.c

index 1cb447c55a05e8ef7a93b61c2e9f1e404998b208..f3104ba31050650f01502977c9a274a50339845b 100644 (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;