Fix: wrong variable checked for NULL after allocation
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Aug 2017 19:46:47 +0000 (15:46 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Aug 2017 22:00:20 +0000 (18:00 -0400)
commit414860a643a48b0c24cf5f4ce75fec609f7e6842
tree15036fee83f15eb27abafae8b7d7b0b32adad0f4
parent8893a28c00914a38f11b6bf4822224a218bfc4b3
Fix: wrong variable checked for NULL after allocation

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>
plugins/ctf/fs-sink/writer.c
This page took 0.024556 seconds and 4 git commands to generate.