[libvirt] [PATCH] libxl: fix compiler error introduced by commit ba25c214
Jim Fehlig
jfehlig at suse.com
Wed Sep 16 03:40:28 UTC 2015
libxl/libxl_conf.c: In function 'libxlDriverConfigNew':
libxl/libxl_conf.c:1560:30: error: 'log_level' may be used uninitialized
in this function [-Werror=maybe-uninitialized]
Signed-off-by: Jim Fehlig <jfehlig at suse.com>
---
Pushing under the build-breaker rule.
src/libxl/libxl_conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 40fa4b5..35fd495 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -1496,7 +1496,7 @@ libxlDriverConfigNew(void)
{
libxlDriverConfigPtr cfg;
char *log_file = NULL;
- xentoollog_level log_level;
+ xentoollog_level log_level = XTL_DEBUG;
char ebuf[1024];
unsigned int free_mem;
--
2.5.0
More information about the libvir-list
mailing list