Files
xen/tools/libxl
Andrew Cooper efbb5c5411 tools/xl: Fix uninitialized variable error.
c/s 25779:4ca40e0559c3 introduced a compilation error for any build
system using -Werror=uninitialized, such as the default CentOS 5.7
version of gcc.

And with good reason, because if the global libxl
default_output_format is neither OUTPUT_FORMAT_SXP nor
OUTPUT_FORMAT_JSON, the variable hand will be used before being
initialised.

The attached patch fixes the warning, and futher fixes the logic to
work correctly when a new OUTPUT_FORMAT is added to xl.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
2012-08-28 14:46:30 +01:00
..
2011-04-04 14:54:46 +01:00
2011-10-12 16:21:32 +01:00
2011-10-12 16:21:32 +01:00
2012-07-06 13:17:40 +01:00
2012-07-06 13:17:40 +01:00
2012-08-03 09:54:11 +01:00
2012-07-26 10:35:31 +01:00
2012-05-30 08:57:49 +01:00
2012-08-24 12:38:16 +01:00
2012-08-24 12:38:16 +01:00
2012-08-24 12:38:18 +01:00
2012-08-24 12:38:18 +01:00
2012-07-26 10:35:35 +01:00
2011-10-12 16:21:32 +01:00
2012-07-26 10:35:35 +01:00