git_mkstemp_mode, xmkstemp_mode: variants of gitmkstemps with mode argument.
[gitweb.git] / transport.c
index 87581b85a160cb57b27e422c01a6eb76e547c87f..3846aacb476b552cefddd8774b9a055e353b6ebc 100644 (file)
@@ -921,7 +921,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
        ret->remote = remote;
        helper = remote->foreign_vcs;
 
-       if (!url && remote && remote->url)
+       if (!url && remote->url)
                url = remote->url[0];
        ret->url = url;