]> xenbits.xensource.com Git - libvirt.git/commit
virmacmap: Fix variable handling
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 2 Jan 2017 08:50:24 +0000 (09:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 2 Jan 2017 12:05:34 +0000 (13:05 +0100)
commit806582a5d1b9fa915810cf4d9df87f13e5ee92e4
tree762610ec7ff26e867b273ca004edca18e43b2d8d
parentfbd717c389e01322258464fc10f8cb8a4d14dfd5
virmacmap: Fix variable handling

In virMacMapRemoveLocked() we have two variables: @macsList and
@newMacsList. Obviously, @newMacsList is supposed to hold pointer
to modified list but in fact it holds pointer to the old list.
It's confusing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virmacmap.c