storage: Need to initialize 'zerobuf'

It was possible to call VIR_FREE in cleanup prior to initialization.
This commit is contained in:
John Ferlan 2013-01-22 09:15:46 -05:00 committed by Peter Krempa
parent 0ce43ca4ab
commit dd383b93ff

View File

@ -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;