Clean-up: unchecked return value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 23:06:09 +0000 (18:06 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jan 2020 23:06:09 +0000 (18:06 -0500)
commit9ac61dbdc19140c00f345aae570f18abbe079852
tree5b4209a1b12abbaff016a3285297d8c6b6491f5e
parentb7e1aba3b4ca20d7efd006f2c0485eb3408ea80e
Clean-up: unchecked return value

The return value of lttng_dynamic_buffer_set_size() is ignored in
lttng_dynamic_array_clear(). It is okay as
lttng_dynamic_buffer_set_size(..., 0) can't fail. However, it
results in a Coverity Scan warning.

1412201 Unchecked return value

If the function returns an error value, the error value may be
mistaken for a normal value.

In lttng_dynamic_array_clear: Value returned from a function is not
checked for errors before being used (CWE-252)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1943e299e4cb5752711f2d25b0dd9a5c44a28a18
src/common/dynamic-array.c
This page took 0.033592 seconds and 4 git commands to generate.