projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae3c165
)
libxl: ensure var is inited in libxl__domain_firmware
author
Doug Goldstein
<cardoe@cardoe.com>
Tue, 8 Mar 2016 02:23:39 +0000
(20:23 -0600)
committer
Wei Liu
<wei.liu2@citrix.com>
Thu, 10 Mar 2016 18:44:24 +0000
(18:44 +0000)
Some versions of GCC complain that the 'firmware' variable can be used
uninitialized. It looks like the switch inside of the else case is just
confusing GCC.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_dom.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_dom.c
b/tools/libxl/libxl_dom.c
index 664adadced413fa4a76a3a7e2c241bf8cc0f9e1f..b825b988c7c764ebdf40dc681b2514b2f156e210 100644
(file)
--- a/
tools/libxl/libxl_dom.c
+++ b/
tools/libxl/libxl_dom.c
@@
-867,7
+867,7
@@
static int libxl__domain_firmware(libxl__gc *gc,
struct xc_dom_image *dom)
{
libxl_ctx *ctx = libxl__gc_owner(gc);
- const char *firmware;
+ const char *firmware
= NULL
;
int e, rc;
int datalen = 0;
void *data;