diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index aaa0f0286d475e7d8171dc01d0a28f69f5c198db..85fc0f2522dea89ead9e2091d4a8b32d9d1384d4 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -1566,7 +1566,7 @@ storageVolDelete(virStorageVolPtr obj, vol->name, pool->def->name); virStorageVolDefFree(vol); - VIR_DELETE_ELEMENT(pool->volumes.objs, pool->volumes.count, i); + VIR_DELETE_ELEMENT(pool->volumes.objs, i, pool->volumes.count); break; } }