mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-26 00:27:54 -04:00
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.
This commit is contained in:
parent
4b524124db
commit
a1e0f387c7
1 changed files with 0 additions and 1 deletions
|
|
@ -2184,7 +2184,6 @@ int pcli_parse_request(struct stream *s, struct channel *req, char **errmsg, int
|
|||
if ((end - 1) == (payload + strlen(PAYLOAD_PATTERN))) {
|
||||
/* if the payload pattern is at the end */
|
||||
s->pcli_flags |= PCLI_F_PAYLOAD;
|
||||
ret = reql;
|
||||
}
|
||||
|
||||
*(end-1) = '\n';
|
||||
|
|
|
|||
Loading…
Reference in a new issue