Fix: uninitialized variable may be used in local rotation check
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 3 Oct 2018 15:28:11 +0000 (11:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Oct 2018 16:20:31 +0000 (12:20 -0400)
commit610add082c5c9660624fc846d7f21fa1f79d21c9
tree5c113bc712f0af855b01432f7789c01ad8a956a3
parent432b38d71c9d351ab607ed45a343d1d54154ab87
Fix: uninitialized variable may be used in local rotation check

** CID 1395985:  Uninitialized variables  (UNINIT)

'ret' may be left uninitialized if no consumer daemons are
iterated-upon to perform a local rotation pending check.

In practice this wont' happen as that would mean that the
ltt_session has no user space nor kernel session action, thus
no rotation would be launched.

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/rotation-thread.c
This page took 0.025359 seconds and 4 git commands to generate.