From: John Ferlan Date: Tue, 22 Jan 2013 14:15:46 +0000 (-0500) Subject: storage: Need to initialize 'zerobuf' X-Git-Tag: v1.0.2-rc1~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd383b93ff86d0f2c967abb777323f5da37c10fa;p=thirdparty%2Flibvirt.git storage: Need to initialize 'zerobuf' It was possible to call VIR_FREE in cleanup prior to initialization. --- 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;