Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-12-17 18:50:12 +0400
committerMichael Schubert <schu@schu.io>2012-12-17 18:50:12 +0400
commit101659be5da3ceefb0501c738620157b92563afe (patch)
tree536a75f66a3960247375a3c175b7861d4a6e2449 /src/util.c
parent69a402d46c5cee6a09499cf763202dfad2004e95 (diff)
Fix -Wmaybe-uninitialized warning
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 831b07385..6df32b1c3 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);