Commit c0c390255a70fb98f7ef9424c4ee53c471d7f22e

Carlos Martín Nieto 2012-07-27T02:37:15

remote: fix C99-ism

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/remote.c b/src/remote.c
index b4a21a6..c479c19 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -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;