Fix: test_dwarf.c: close() argument cannot be negative
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 16 Sep 2019 14:46:31 +0000 (10:46 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 19 Sep 2019 18:41:56 +0000 (14:41 -0400)
commiteda096d774a5c41bcbc0c54846c716f8aeb6ad99
treea6dd6d9a4a4a0325a52c0b43ea3952fa71b2e248
parenta28452280defa290d884c80a88b05ce90cc5bfc7
Fix: test_dwarf.c: close() argument cannot be negative

Coverity reported the following:
  CID 1401801 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)8.
  negative_returns: fd is passed to a parameter that cannot be negative.

Reported-by: Coverity - Argument cannot be negative (NEGATIVE_RETURNS)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Ibcdcfd54f5f711923e5a31544c86e82da3ec6226
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2048
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c
This page took 0.024792 seconds and 4 git commands to generate.