mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-01 07:21:29 +00:00
Fix -Wmaybe-uninitialized warning
This commit is contained in:
parent
69a402d46c
commit
101659be5d
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user