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
..
2012-02-07 17:18:10 +00:00
2012-08-01 12:46:52 +01:00
2012-08-06 12:28:03 +01:00
2012-04-24 17:12:22 +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:42 +01:00
2012-08-03 09:54:14 +01:00
2012-07-06 13:17:40 +01:00
2012-07-06 13:17:40 +01:00
2012-08-03 09:54:08 +01:00
2012-05-30 08:57:50 +01:00
2012-08-03 12:25:29 +01:00
2012-08-03 09:54:12 +01:00
2012-06-01 12:06:22 +01:00
2012-08-22 22:26:27 +01:00
2012-08-06 12:28:03 +01:00
2012-08-03 09:54:11 +01:00
2012-08-23 19:00:09 +01:00
2012-08-03 09:54:14 +01:00
2012-08-03 11:57:10 +01:00
2012-06-28 18:43:27 +01:00
2012-01-13 16:54:19 +00:00
2012-06-28 18:43:25 +01:00
2012-07-26 16:47:32 +01:00
2012-08-23 19:00:09 +01:00
2012-07-26 10:35:31 +01:00
2012-07-06 13:17:42 +01:00
2012-08-03 09:54:06 +01:00
2010-10-21 18:51:26 +01:00
2012-08-01 12:46:47 +01:00
2012-05-30 08:57:50 +01:00
2012-08-03 12:25:29 +01:00
2012-05-30 08:57:49 +01:00
2012-08-03 09:54:14 +01:00
2011-10-12 16:21:32 +01:00
2012-05-29 16:44:06 +01:00
2012-08-03 09:54:03 +01:00
2012-06-08 16:09:00 +01:00
2012-06-28 18:43:23 +01:00
2012-06-28 18:43:21 +01:00
2012-06-28 18:43:24 +01:00
2012-04-24 18:40:15 +01:00
2012-08-22 22:26:27 +01:00
2012-07-06 13:17:44 +01:00
2012-07-06 13:17:44 +01:00
2012-01-31 14:41:00 +00:00
2012-01-31 14:41:00 +00:00
2012-05-30 08:57:52 +01:00
2012-08-03 09:54:16 +01:00
2012-08-23 19:00:09 +01:00
2012-08-23 19:00:09 +01:00
2012-01-13 16:54:19 +00:00
2012-08-24 12:38:16 +01:00
2012-08-24 12:38:16 +01:00
2011-06-02 18:46:31 +01:00
2012-08-24 12:38:18 +01:00
2012-08-24 12:38:18 +01:00
2011-07-19 16:02:36 +01:00
2012-05-15 16:28:12 +01:00
2012-08-06 12:28:03 +01:00
2012-08-06 12:28:03 +01:00
2012-08-06 12:28:03 +01:00
2012-08-06 12:28:03 +01:00
2012-07-26 10:35:35 +01:00
2012-05-15 16:28:12 +01:00
2012-04-04 16:06:42 +01:00
2012-05-15 16:28:12 +01:00
2012-04-24 17:09:22 +01:00
2012-08-24 12:38:14 +01:00
2011-10-12 16:21:32 +01:00
2012-08-28 14:46:30 +01:00
2012-07-26 10:35:35 +01:00
2012-08-22 22:26:27 +01:00
2012-07-26 16:47:32 +01:00
2012-07-26 16:47:32 +01:00