src.ctf.fs: fix error path of ctf_fs_init
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 30 Aug 2024 18:17:13 +0000 (14:17 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit0934fa003959af15e446f92c46cec04256a3b6dc
treea8b52ee02d5f8aae3fc943734a5630fabb120274
parent9328f86be150d02d6c4a5f6de046cf7e4dfb8ca4
src.ctf.fs: fix error path of ctf_fs_init

If ctf_fs_create fails (returns nullptr), we don't want to call
bt_self_component_set_data.  Return early if that happens.

Change-Id: Ib5766c6795a841ee1c2abc30e1751f9f1930f985
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13200
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/fs.cpp
This page took 0.024537 seconds and 4 git commands to generate.