]> xenbits.xensource.com Git - libvirt.git/commit
Initialize ret to -1 in nodeStateInitialize
authorJán Tomko <jtomko@redhat.com>
Fri, 3 Jun 2016 08:21:23 +0000 (10:21 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 7 Jun 2016 08:51:36 +0000 (10:51 +0200)
commitb2a55dfd1f7702e34322022fe54ff3ff072d047e
treeaca1d47385f651dc8c3a384efd5a2994c798d716
parentc0bc172383c2c955394589e5808457935ae06f1d
Initialize ret to -1 in nodeStateInitialize

Most of the code paths had to reset it to -1 and returning 0 was
only possible if we made it to the end of the function.

Initialize it to -1 and only set it to 0 if we reach the end, as we do
in most of libvirt code.
src/node_device/node_device_udev.c