diff --git a/tools/ioemu/xenstore.c b/tools/ioemu/xenstore.c index 551190e86c..aa8c894d0f 100644 --- a/tools/ioemu/xenstore.c +++ b/tools/ioemu/xenstore.c @@ -112,7 +112,7 @@ void xenstore_parse_domain_config(int hvm_domid) e = xs_directory(xsh, XBT_NULL, buf, &num); if (e == NULL) - goto out; + num = 0; for (i = 0; i < num; i++) { /* read the backend path */