Silence bogus Coverity warning of uninitialized value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 6 May 2017 18:54:33 +0000 (14:54 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 6 May 2017 19:55:05 +0000 (15:55 -0400)
commit09e589094b7ce1f98a6ce6e3428af98a7b973bab
tree32ac7e2bdc909a7f7c4f28e57a3f43ccb9b55609
parentb137f8756b6a89c9bdd1bc35f5f03332cbb395c2
Silence bogus Coverity warning of uninitialized value

Coverity complains that struct lttng_condition_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/condition.c
This page took 0.026137 seconds and 4 git commands to generate.