From 64b60266adffc73c09f5316bffdfac29b2fc991b Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Wed, 18 Jun 2014 23:47:41 -0600 Subject: [PATCH] Fix xmconfigtest Commit ac63014c introduced a regression in the conversion of Xen xm config to XML by emitting an empty . Prior to this commit, was omitted if the xm config was missing (or contained an empty) 'extra='. --- src/xenxs/xen_xm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenxs/xen_xm.c b/src/xenxs/xen_xm.c index 745041b327..2cd6d4c901 100644 --- a/src/xenxs/xen_xm.c +++ b/src/xenxs/xen_xm.c @@ -350,7 +350,7 @@ xenParseXM(virConfPtr conf, int xendConfigVersion, goto cleanup; if (xenXMConfigCopyStringOpt(conf, "ramdisk", &def->os.initrd) < 0) goto cleanup; - if (xenXMConfigGetString(conf, "extra", &extra, "") < 0) + if (xenXMConfigGetString(conf, "extra", &extra, NULL) < 0) goto cleanup; if (xenXMConfigGetString(conf, "root", &root, NULL) < 0) goto cleanup; -- GitLab