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:16:33 +0000 (14:16 -0500)
commitdd0998359fbd60a4321c8b218ca56db375344d6f
treef22dc623ba99a804412d31c6ab847e5b05b5f212
parentcfb1642dfc940ec63ec86e0721f0f5cdf5a79fe7
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.c
This page took 0.025704 seconds and 4 git commands to generate.