aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/libxl/libxl_blktap2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_blktap2.c b/tools/libxl/libxl_blktap2.c
index 17c18fbfdf..e6a8ed1662 100644
--- a/tools/libxl/libxl_blktap2.c
+++ b/tools/libxl/libxl_blktap2.c
@@ -29,7 +29,7 @@ const char *libxl_blktap_devpath(libxl_gc *gc,
libxl_disk_phystype phystype)
{
const char *type;
- char *params, *devname;
+ char *params, *devname = NULL;
int minor, err;
type = device_disk_string_of_phystype(phystype);