Commit 86360ffd by nulltoken

transport: prevent the transport determination mechanism from segfaulting when…

transport: prevent the transport determination mechanism from segfaulting when being passed an url starting with an unknown prefix
parent fdc8a7db
......@@ -23,7 +23,7 @@ static struct {
{NULL, 0}
};
#define GIT_TRANSPORT_COUNT (sizeof(transports)/sizeof(transports[0]))
#define GIT_TRANSPORT_COUNT (sizeof(transports)/sizeof(transports[0])) - 1
static git_transport_cb transport_find_fn(const char *url)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment