mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
remote: fix C99-ism
This commit is contained in:
parent
581b6a8e90
commit
c0c390255a
@ -374,10 +374,11 @@ const char* git_remote__urlfordirection(git_remote *remote, int direction)
|
||||
int git_remote_connect(git_remote *remote, int direction)
|
||||
{
|
||||
git_transport *t;
|
||||
const char *url;
|
||||
|
||||
assert(remote);
|
||||
|
||||
const char* url = git_remote__urlfordirection(remote, direction);
|
||||
url = git_remote__urlfordirection(remote, direction);
|
||||
if (url == NULL )
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user