diff options
author | Michael Schubert <schu@schu.io> | 2012-12-17 18:50:12 +0400 |
---|---|---|
committer | Michael Schubert <schu@schu.io> | 2012-12-17 18:50:12 +0400 |
commit | 101659be5da3ceefb0501c738620157b92563afe (patch) | |
tree | 536a75f66a3960247375a3c175b7861d4a6e2449 /src/util.c | |
parent | 69a402d46c5cee6a09499cf763202dfad2004e95 (diff) |
Fix -Wmaybe-uninitialized warning
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
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); |