# HG changeset patch
# User Jim Fehlig <jfehlig(a)novell.com>
# Date 1226941669 25200
# Node ID 482db8d9ffd289a904e2e2004e75534e35f10254
# Parent 7d43dee14fefe065b3258116bc5f09d3daa3576b
Fix emulator device parsing
Emulator device specified in domain xml is dropped due to inverted logic
in device parsing.
Signed-off-by: Jim Fehlig <jfehlig(a)novell.com>
diff -r 7d43dee14fef -r 482db8d9ffd2 libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c Fri Nov 14 15:05:47 2008 -0700
+++ b/libxkutil/device_parsing.c Mon Nov 17 10:07:49 2008 -0700
@@ -377,7 +377,7 @@ static int parse_emu_device(xmlNode *nod
edev = &(vdev->dev.emu);
edev->path = get_node_content(node);
- if (edev->path != NULL)
+ if (edev->path == NULL)
goto err;
vdev->type = CIM_RES_TYPE_EMU;