CID
1376147 (#1 of 1): Unchecked return value (CHECKED_RETURN).
check_return: Calling bt_value_array_append_string without checking
return value (as is done elsewhere 49 out of 50 times).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
for (i = 0; i < dirs->len; i++) {
GString *dir = g_ptr_array_index(dirs, i);
- bt_value_array_append_string(plugin_paths, dir->str);
+ status = bt_value_array_append_string(plugin_paths, dir->str);
+ if (status != BT_VALUE_STATUS_OK) {
+ break;
+ }
}
end: