提交 164f7866 编写于 作者: C Chris Lalancette

Compiling with -Werror showed a possible use before initialization

in src/qemu_driver.c.  Make sure to initialize the olddisk ptr to NULL.
Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 e4e4a459
Thu Oct 16 15:41:00 CEST 2008 Chris Lalancette <clalance@redhat.com>
* Compiling with -Werror showed a possible use before initialization
in src/qemu_driver.c. Make sure to initialize the origdisk ptr to
NULL.
Thu Oct 16 15:04:36 +0200 Jim Meyering <meyering@redhat.com>
build: exempt *.ico files from the trailing blank check
......
......@@ -2401,6 +2401,7 @@ static int qemudDomainChangeEjectableMedia(virDomainPtr dom,
return -1;
}
origdisk = NULL;
newdisk = dev->data.disk;
for (i = 0 ; i < vm->def->ndisks ; i++) {
if (vm->def->disks[i]->bus == newdisk->bus &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册