Coverity:
CID
1376154 (#1 of 1): Unchecked return value (CHECKED_RETURN)1.
check_return: Calling bt_ctf_stream_flush without checking return value
(as is done elsewhere 5 out of 6 times).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
static
gboolean empty_streams_ht(gpointer key, gpointer value, gpointer user_data)
{
+ int ret;
struct bt_ctf_stream *writer_stream = value;
- bt_ctf_stream_flush(writer_stream);
-
+ ret = bt_ctf_stream_flush(writer_stream);
+ if (ret) {
+ BT_LOGD_STR("Failed to flush stream while emptying hash table.");
+ }
return TRUE;
}