提交 dd383b93 编写于 作者: J John Ferlan 提交者: Peter Krempa

storage: Need to initialize 'zerobuf'

It was possible to call VIR_FREE in cleanup prior to initialization.
上级 0ce43ca4
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册