Fix: sessiond: `break` used instead of `goto`
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 1 Mar 2022 15:35:44 +0000 (10:35 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Mar 2022 19:12:43 +0000 (14:12 -0500)
commit9402f1669d8035e4c5618652b92a3d29defbcd70
tree2135a051b600c77e6e2161613ac96c7b9f12bcbd
parent88b02a8e7cbdbc728cc681cd07bbe0c738964717
Fix: sessiond: `break` used instead of `goto`

On error path, use `goto`.

Reported by Coverity:

    CID 1475805: Unused value (UNUSED_VALUE)
    Assigning value LTTNG_ERR_UNK to ret_code here, but that stored value is overwritten before it can be used.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ife3b5486b8463242dfecb61a3a9718e8eb7149b4
src/bin/lttng-sessiond/cmd.cpp
This page took 0.025029 seconds and 4 git commands to generate.