]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proto_http: Removing useless variable assignation
authorErwan Velu <erwanaliasr1@gmail.com>
Thu, 15 Oct 2015 12:36:56 +0000 (14:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Aug 2016 12:24:48 +0000 (14:24 +0200)
delta is set to 0 just before being assigned to a buffer.
This patch is just removing this useless line, shorted is better.

src/proto_http.c

index c8df1a45a81689279a6b5a35883cfae0862ef3f4..50e3d486ee4798ae8d329b7a78a23b8ba82cff68 100644 (file)
@@ -1961,7 +1961,6 @@ static int http_upgrade_v09_to_v10(struct http_txn *txn)
                return 0;
 
        cur_end = msg->chn->buf->p + msg->sl.rq.l;
-       delta = 0;
 
        if (msg->sl.rq.u_l == 0) {
                /* HTTP/0.9 requests *must* have a request URI, per RFC 1945 */