common: silence bogus coverity warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Jun 2023 20:57:37 +0000 (16:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Jun 2023 21:03:46 +0000 (17:03 -0400)
commit29784e2373ff4d82370f584f4e4e9722cda172a8
treecd0a1c06299622ca721067aeaf4421d86f4435d2
parentfeef6f74e701ea68540ca306628888c1cf4f01bd
common: silence bogus coverity warning

Coverity reports:
  1512891 Uninitialized scalar variable
  The variable will contain an arbitrary value left from earlier computations.

  In lttng_event_serialize(lttng_event const *, unsigned int, char
  const * const *,   char const *, unsigned long, lttng_bytecode *, lttng_payload *): Use of an uninitialized variable (CWE-457)

This warning is bogus since lttng_event_exclusion_comm contains a single
field which is already initialized and is packed (no padding possible).

Initialize the header explicitly to silence the warning.

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