summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d184b96)
Coverity complains that struct lttng_notification_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>
char *buf)
{
ssize_t ret, condition_size, evaluation_size, offset = 0;
char *buf)
{
ssize_t ret, condition_size, evaluation_size, offset = 0;
- struct lttng_notification_comm notification_comm;
+ struct lttng_notification_comm notification_comm = { 0 };
if (!notification) {
ret = -1;
if (!notification) {
ret = -1;