Commit 101659be5da3ceefb0501c738620157b92563afe

Michael Schubert 2012-12-17T15:50:12

Fix -Wmaybe-uninitialized warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/util.c b/src/util.c
index 831b073..6df32b1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -199,7 +199,7 @@ int git__strncmp(const char *a, const char *b, size_t sz)
 
 int git__strncasecmp(const char *a, const char *b, size_t sz)
 {
-	int al, bl;
+	int al = 0, bl = 0;
 
 	while (sz && *a && *b) {
 		al = (unsigned char)tolower(*a);