]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
git_connect(): use common return point
authorTorsten Bögershausen <tboegi@web.de>
Thu, 28 Nov 2013 19:50:15 +0000 (20:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2013 22:54:48 +0000 (14:54 -0800)
commita2036d7e00ad8aa16ba010a80078e10f0e4568a3
tree8eed4dd08703b9a9f514b2ee538ffa7ef90f21b3
parentc59ab2e52a64abd7fded97e0983a9b7f3d0508a0
git_connect(): use common return point

Use only one return point from git_connect(), doing the

    free();
    return conn;

only at one place in the code.

There may be a little confusion what the variable "host" is for.  At
some places it is only the host part, at other places it may include
the port number, so change host into hostandport here.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c