]> xenbits.xensource.com Git - libvirt.git/commit
storage: avoid an intermediate malloc
authorEric Blake <eblake@redhat.com>
Mon, 13 Jun 2011 22:17:46 +0000 (16:17 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 14 Jun 2011 15:17:57 +0000 (09:17 -0600)
commit66dc2ae61bcc1275ad9a5d2ade67376bb4e9d5a3
treee680682debef8d5b7eb8102896863a2c3aaf1f44
parentf3d6754415cc3332437fed5688f1b176a032c838
storage: avoid an intermediate malloc

Suggested here:
https://www.redhat.com/archives/libvir-list/2011-May/msg00594.html

* src/storage/storage_backend.c (virStorageBackendCreateQemuImg):
Generate size inline.
src/storage/storage_backend.c