libxenlight: fix cd-insert cli arguments parsing

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
Keir Fraser committed 2009-12-11 08:47:51 +00:00
1 parent de7c9106c1
commit dcf8b0114d
1 file changed
+3 -3
+3 -3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.