[libvirt] [PATCH 10/14] storage: Need to initialize 'zerobuf'
John Ferlan
jferlan at redhat.com
Tue Jan 22 14:15:46 UTC 2013
It was possible to call VIR_FREE in cleanup prior to initialization.
---
src/storage/storage_backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index c2c4c51..cab72c6 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -141,7 +141,7 @@ virStorageBackendCopyToFD(virStorageVolDefPtr vol,
size_t rbytes = READ_BLOCK_SIZE_DEFAULT;
size_t wbytes = 0;
int interval;
- char *zerobuf;
+ char *zerobuf = NULL;
char *buf = NULL;
struct stat st;
--
1.7.11.7
More information about the libvir-list
mailing list