Found by Coverity:
writer_component->base_path = g_string_new(path);
notnull: At condition writer_component, the value of writer_component
cannot be NULL.
dead_error_condition: The condition !writer_component cannot be true.
CID
1376158 (#1 of 1): Logically dead code (DEADCODE)dead_error_begin:
Execution cannot reach this statement: ret = BT_COMPONENT_STATUS_E..
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bt_put(value);
writer_component->base_path = g_string_new(path);
- if (!writer_component) {
+ if (!writer_component->base_path) {
ret = BT_COMPONENT_STATUS_ERROR;
goto error;
}