]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix coverity complain in commandtest.c
authorPavel Hrdina <phrdina@redhat.com>
Mon, 13 Jan 2014 15:50:00 +0000 (16:50 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 15 Jan 2014 10:18:23 +0000 (11:18 +0100)
commitab8692b639011547eef8be209c94bba2300fd1a9
treea31ff9368fe1c4808340822e4aeb6cc05add63de
parent7a0e74439910d474b5a442408bac051c3d488cff
Fix coverity complain in commandtest.c

For a "newfd1" the coverity tools thinks that the fd is closed in
a "virCommandPassFD", but with "flags == 0" it cannot be closed.

The code itself is ok, but coverity tool thinks that there is
"double_close" of the "newfd1" and to prevent showing this error
we simply add a comment before the proper close.

This has been found by coverity.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tests/commandtest.c