transport: prevent the transport determination mechanism from segfaulting when being passed an url starting with an unknown prefix
diff --git a/src/transport.c b/src/transport.c
index d836561..00b79dc 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -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)
{