]> xenbits.xensource.com Git - people/gdunlap/xen.git/commit
tools: xl: handle unspecified extra= when dealing with root=
authorIan Campbell <ian.campbell@citrix.com>
Mon, 9 Mar 2015 12:48:56 +0000 (12:48 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 11 Mar 2015 12:58:49 +0000 (12:58 +0000)
commit49ab17a3a615e1ab4ccc46d6942f925cf841df4b
treed3bb4afb87ed0051ca3a0e3679d31bcdabab6124
parente1eb56fb6bbc6cc466338fe86f01d95fc73e124f
tools: xl: handle unspecified extra= when dealing with root=

If the cfg file includes root= but not extra= (nor cmdline=, which
supercedes both) then the command line will end up with an extra
"(null)" on it (at least with glibc's implementation of asprintf).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Chunyan Liu <cyliu@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c