Fix: wrong variable checked for NULL after allocation
[babeltrace.git] / plugins / ctf / fs-sink / writer.c
index ae30a84b37504ea46594711221a22d48ab2d92df..fd2c1632df961b8b729874d17ba0d396d3d2e02c 100644 (file)
@@ -351,7 +351,7 @@ enum bt_component_status writer_component_init(
        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;
        }
This page took 0.026994 seconds and 4 git commands to generate.