]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: Checking fd for negative before closing 17190/head
authoramitkuma <amitkuma@redhat.com>
Wed, 23 Aug 2017 17:14:34 +0000 (22:44 +0530)
committeramitkuma <amitkuma@redhat.com>
Thu, 24 Aug 2017 17:18:02 +0000 (22:48 +0530)
commit1666d9aa81045d6ee23fade338fcde69ace2a4c1
tree71ce3583d4f4783dab4d3012ed80b4ba8195df17
parentc851ad0efc1ada63a7c0cce540bd504befddae60
test: Checking fd for negative before closing

Fixes the coverity issue:

** 1395317 Argument cannot be negative
161. negative_return_fn: Function open("bufferlist", 0) returns a
negative number.
162. var_assign: Assigning: signed variable fd = open.

Signed-off-by: Amit Kumar amitkuma@redhat.com
src/test/bufferlist.cc