Fix: sink.text.details: goto error when failing to add input port
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 9 Apr 2020 17:55:05 +0000 (13:55 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 11 Apr 2020 14:04:44 +0000 (10:04 -0400)
commit708e8c9dea489b8c6113adc3ea03d16c993b1f0c
tree891ba0f60acca87cef3b797a1e416a12702aca28
parent33f24144e8e35a09395866c2f02dc085d125f355
Fix: sink.text.details: goto error when failing to add input port

If bt_self_component_sink_add_input_port fails, the current code does
not goto error.  This patch fixes it.  It also changes the switch, used
to convert from `add_port_status` to `status`, to a cast, as is the
practice throughout the project.

Change-Id: I82b2719316ad00ffd9d9c14b86b8890b98130669
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3383
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
(cherry picked from commit c7f21c12d5cec35f3e48630cf603207748409847)
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3362
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/text/details/details.c
This page took 0.025078 seconds and 4 git commands to generate.