]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix va_start usage bug
authorEric Blake <eblake@redhat.com>
Tue, 4 May 2010 22:07:18 +0000 (16:07 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 4 May 2010 22:07:18 +0000 (16:07 -0600)
commit62ee19c76317a91718b2ffa193f3849942955629
tree8f44fa81d5b9c6b1879b5eeb284c83f6532944e0
parentb0a3f8b6c546aa710f45900797b38cc5fa0f49d9
util: fix va_start usage bug

Detected by clang.  POSIX requires that the second argument to
va_start be the name of the last variable; and in some implementations,
passing *path instead of path would dereference bogus memory instead
of pulling arguments off the stack.

* src/util/util.c (virBuildPathInternal): Use correct argument to
va_start.
src/util/util.c