提交 c4408dec 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
上级 6c0af6be
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册