CLEANUP: remove unused variable assigned found by Coverity
authorIlya Shipitsin <chipitsine@gmail.com>
Wed, 10 Feb 2021 08:03:30 +0000 (13:03 +0500)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 Feb 2021 10:48:36 +0000 (11:48 +0100)
commita1e0f387c77212564a3b727d313eee79d273a786
tree35b38167c3e32a2d51bf041c31482fcfa7c3d281
parent4b524124db9dc6e64b4e0f0882b5fc71d24970e0
CLEANUP: remove unused variable assigned found by Coverity

this is pure cleanup, no need to backport

2116        if ((end - 1) == (payload + strlen(PAYLOAD_PATTERN))) {
2117                /* if the payload pattern is at the end */
2118                s->pcli_flags |= PCLI_F_PAYLOAD;
    CID 1399833 (#1 of 1): Unused value (UNUSED_VALUE)assigned_value: Assigning value from reql to ret here, but that stored value is overwritten before it can be used.
2119                ret = reql;
2120        }

This patch fixes the issue #1048.
src/cli.c