Silence bogus Coverity warning of uninitialized value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 6 May 2017 19:04:27 +0000 (15:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 6 May 2017 19:55:06 +0000 (15:55 -0400)
commit962d30a7b271ba1d8a334bf7c987d9834a39cc9c
tree60d8cf8ccc3f084fb798dcbcbfd1e3f65aa9daaf
parent39036442e68ae66beb2f9c111c8e5378a9307533
Silence bogus Coverity warning of uninitialized value

Coverity complains that struct lttng_trigger_comm's
payload field is not initialized. "payload" is a flexible
array member which should be ignored. Normally, a such a
member _could_ result in additional padding added at the
end of the structure. In this case, the structure is declared
as packed.

Nonetheless, using a designated initializer gets rid of the
ambiguity and silences Coverity.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/trigger.c
This page took 0.025027 seconds and 4 git commands to generate.