mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
virNetDevOpenvswitchGetVhostuserIfname: Fix const correctness
The @tmpIfname is a pointer into a const string. To avoid mistakenly changing the const string via the pointer, make the pointer const too. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
6c0af6be64
commit
c4408decbd
@ -483,7 +483,7 @@ int
|
||||
virNetDevOpenvswitchGetVhostuserIfname(const char *path,
|
||||
char **ifname)
|
||||
{
|
||||
char *tmpIfname = NULL;
|
||||
const char *tmpIfname = NULL;
|
||||
int status;
|
||||
int ret = -1;
|
||||
g_autoptr(virCommand) cmd = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user