]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix index when building lock owners array
authorLaine Stump <laine@laine.org>
Wed, 14 Nov 2012 17:07:13 +0000 (12:07 -0500)
committerLaine Stump <laine@laine.org>
Wed, 14 Nov 2012 17:43:49 +0000 (12:43 -0500)
commitbc4b433098f860fa87091ada10db6da414595c4e
tree07af7c29fe31508e801b4ad194b4f29031913cee
parent3782814d4ad787d815e56382b6f809fe9020f14b
util: fix index when building lock owners array

The "restart" function for locks allocates a new array according to
and pre-sets its length, then reads the owner pids from a JSON
document in a loop. Rather than adding each owner at a different
index, though, it repeatedly overwrites the last element of the array
with all the owners.
src/util/virlockspace.c