aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-03-05 14:35:44 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-03-05 14:35:44 +0000
commitd1f2e8c47643cc87b1238b536da8ad2026b2e74f (patch)
tree7aa9fbb2369a60e5e411cc9e5914e7038d0d3f52 /tools
parent05b99c93cb61809a369763db29803816df49407d (diff)
downloadxen-d1f2e8c47643cc87b1238b536da8ad2026b2e74f.tar.gz
xen-d1f2e8c47643cc87b1238b536da8ad2026b2e74f.tar.bz2
xen-d1f2e8c47643cc87b1238b536da8ad2026b2e74f.zip
xl: Fix undefined behaviour when pci not specified in input file
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/xl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c
index 6e88c6ee6a..2e23da3307 100644
--- a/tools/libxl/xl.c
+++ b/tools/libxl/xl.c
@@ -590,7 +590,7 @@ skip_vfb:
if (!xlu_cfg_get_long (config, "pci_power_mgmt", &l))
pci_power_mgmt = l;
- if (xlu_cfg_get_list (config, "pci", &pcis, 0)) {
+ if (!xlu_cfg_get_list (config, "pci", &pcis, 0)) {
*num_pcidevs = 0;
*pcidevs = NULL;
while ((buf = xlu_cfg_get_listitem (pcis, *num_pcidevs)) != NULL) {