mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
qemuDomainBuildNamespace: Make @devPath const
The @devPath variable is not modifiable. It merely just points to string containing path where private devtmpfs is being constructed. Make it const so it doesn't look weird that it's not freed. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Pavel Mores <pmores@redhat.com>
This commit is contained in:
parent
ca2edd678d
commit
140036237e
@ -15176,7 +15176,7 @@ qemuDomainBuildNamespace(virQEMUDriverConfigPtr cfg,
|
||||
virDomainObjPtr vm)
|
||||
{
|
||||
struct qemuDomainCreateDeviceData data;
|
||||
char *devPath = NULL;
|
||||
const char *devPath = NULL;
|
||||
char **devMountsPath = NULL, **devMountsSavePath = NULL;
|
||||
size_t ndevMountsPath = 0, i;
|
||||
int ret = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user