]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
libxl: fix compiler error introduced by commit ba25c214
authorJim Fehlig <jfehlig@suse.com>
Wed, 16 Sep 2015 03:10:59 +0000 (21:10 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 16 Sep 2015 03:10:59 +0000 (21:10 -0600)
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]

src/libxl/libxl_conf.c

index 40fa4b55cf4f31913818913394e31b5a83d79d05..35fd495c509f1e9dcbc4c12f5c91e91e6c0d7a90 100644 (file)
@@ -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;