mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxenlight: fix cd-insert cli arguments parsing
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
de7c9106c1
commit
dcf8b0114d
1 file changed
+3
-3
+3
-3
@@ -904,10 +904,10 @@ void cd_insert(char *dom, char *virtdev, char *phys)
|
||||
disk.phystype = PHYSTYPE_FILE;
|
||||
}
|
||||
} else {
|
||||
p = '\0';
|
||||
disk.physpath = strdup(p);
|
||||
*p = '\0';
|
||||
p++;
|
||||
libxl_string_to_phystype(&ctx, p, &disk.phystype);
|
||||
disk.physpath = p;
|
||||
libxl_string_to_phystype(&ctx, phys, &disk.phystype);
|
||||
}
|
||||
} else {
|
||||
disk.physpath = NULL;
|
||||
|
||||