From dd383b93ff86d0f2c967abb777323f5da37c10fa Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 22 Jan 2013 09:15:46 -0500 Subject: [PATCH] storage: Need to initialize 'zerobuf' 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 c2c4c5111f..cab72c63cc 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;