]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Resolve Coverity DEADCODE
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 18:46:34 +0000 (14:46 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 12:03:37 +0000 (08:03 -0400)
commit6825bdad13aff56b1388fa17582595776cf25b52
treeb323266cbdba1e06d16f1bb92c22b34c8a8692bf
parentdaf27d4d82bd391f426f7b4d09df426df2b36755
virfile: Resolve Coverity DEADCODE

Adjust the parentheses in/for the waitpid loops; otherwise, Coverity
points out:

(1) Event assignment:   Assigning: "waitret" = "waitpid(pid, &status, 0) == -1"
(2) Event between:      At condition "waitret == -1", the value of "waitret"
                        must be between 0 and 1.
(3) Event dead_error_condition:     The condition "waitret == -1" cannot
                        be true.
(4) Event dead_error_begin:     Execution cannot reach this statement:
                        "ret = -*__errno_location();".

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virfile.c