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 19:46:47 +0000 (15:46 -0400)
commitda4fc746ed6f146ac9e714f22ef976a8ec7b0f8e
treef80ba67c89ff3d01594dc549fd3aea8cfc99866e
parent56eb9e16311ed4fb6ab1065895789aa3c379bbad
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.02473 seconds and 4 git commands to generate.