summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
900690c)
GCC reports that discarded_events and lost_packets may be used
uninitialized. Assert that both pointers are not NULL to
silence the warning.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct ltt_ust_session *usess;
usess = session->ust_session;
struct ltt_ust_session *usess;
usess = session->ust_session;
+ assert(discarded_events);
+ assert(lost_packets);
if (!usess || !session->has_been_started) {
*discarded_events = 0;
if (!usess || !session->has_been_started) {
*discarded_events = 0;