Index: src/qemu_conf.c =================================================================== RCS file: /data/cvs/libvirt/src/qemu_conf.c,v retrieving revision 1.14 diff -u -p -r1.14 qemu_conf.c --- src/qemu_conf.c 21 Sep 2007 21:20:32 -0000 1.14 +++ src/qemu_conf.c 26 Sep 2007 00:42:05 -0000 @@ -1312,7 +1312,7 @@ static struct qemud_vm_def *qemudParseXM } def->ninputs++; input->next = NULL; - if (i == 0) { + if (def->inputs == NULL) { def->inputs = input; } else { prev->next = input;