mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
storage: Need to initialize 'zerobuf'
It was possible to call VIR_FREE in cleanup prior to initialization.
This commit is contained in:
parent
0ce43ca4ab
commit
dd383b93ff
@ -141,7 +141,7 @@ virStorageBackendCopyToFD(virStorageVolDefPtr vol,
|
|||||||
size_t rbytes = READ_BLOCK_SIZE_DEFAULT;
|
size_t rbytes = READ_BLOCK_SIZE_DEFAULT;
|
||||||
size_t wbytes = 0;
|
size_t wbytes = 0;
|
||||||
int interval;
|
int interval;
|
||||||
char *zerobuf;
|
char *zerobuf = NULL;
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user