]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix xmconfigtest
authorJim Fehlig <jfehlig@suse.com>
Thu, 19 Jun 2014 05:47:41 +0000 (23:47 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 19 Jun 2014 05:47:41 +0000 (23:47 -0600)
Commit ac63014c introduced a regression in the conversion of Xen
xm config to XML by emitting an empty <cmdline>.  Prior to this
commit, <cmdline> was omitted if the xm config was missing (or
contained an empty) 'extra='.

src/xenxs/xen_xm.c

index 745041b3277c9b1d8adc53ec9aa9d32f7ad0b074..2cd6d4c9018cb6d153c5ef453cb5e1c5833bb391 100644 (file)
@@ -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;