libxl_blktap_devpath: initialize devname to NULL
authorStefano Stabellini <sstabellini@xensource.com>
Mon, 16 Aug 2010 17:05:07 +0000 (18:05 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Mon, 16 Aug 2010 17:05:07 +0000 (18:05 +0100)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl_blktap2.c

index 17c18fbfdf8ef5b2b62d89d8898dcbc7bb9406db..e6a8ed16621a051f64e673a0212dfeef5ea1ea91 100644 (file)
@@ -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);