提交 b876bf6e 编写于 作者: D Daniel P. Berrange

Fixed crash prossing input tags

上级 4bf3bc9e
Fri Sep 28 16:41:41 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_conf.c: Fix crash processing multiple <input> tags
Fri Sep 28 16:17:41 CEST 2007 Daniel Veillard <veillard@redhat.com> Fri Sep 28 16:17:41 CEST 2007 Daniel Veillard <veillard@redhat.com>
* include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.c * include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.c
......
...@@ -1312,7 +1312,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn, ...@@ -1312,7 +1312,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
} }
def->ninputs++; def->ninputs++;
input->next = NULL; input->next = NULL;
if (i == 0) { if (def->inputs == NULL) {
def->inputs = input; def->inputs = input;
} else { } else {
prev->next = input; prev->next = input;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册