]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: report correct error
authorEric Blake <eblake@redhat.com>
Tue, 3 May 2011 20:30:34 +0000 (14:30 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 4 May 2011 15:24:09 +0000 (09:24 -0600)
commit32388f12d57cd827c2f87eafcf512c3ff63b7bbb
tree3da90055582aac900c25f8c887e20d68062e434e
parent710f8811f58c00e46df35c328f8ea76a195db6b3
lxc: report correct error

Clang noticed a dead assignment, which turned out to be the use
of the wrong variable.  rc starts life as -1, and is only ever
assigned to 0 just before a successful cleanup.

* src/lxc/lxc_driver.c (lxcSetupInterfaces): Don't call
virReportSystemError(-1).
src/lxc/lxc_driver.c