Commit a68cf94b37b59fbc5a00dca9e7488da717bfea4e

Carlos Martín Nieto 2011-04-19T16:40:52

Fix const char ** warning Signed-off-by: Carlos Martín Nieto <cmn@elego.de>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/config.c b/src/config.c
index ec350f8..3bde15b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -377,8 +377,7 @@ static int config_get(git_config *cfg, const char *name, const char **out)
 
 int git_config_get_long(git_config *cfg, const char *name, long int *out)
 {
-	const char *value;
-	char *num_end;
+	const char *value, *num_end;
 	int ret;
 	long int num;