mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 17:12:51 +00:00
config_file: fix clang sizeof-pointer-memaccess
This commit is contained in:
parent
6d39c0dd6f
commit
15f52ae1d6
@ -738,7 +738,7 @@ error:
|
|||||||
|
|
||||||
static int skip_bom(diskfile_backend *cfg)
|
static int skip_bom(diskfile_backend *cfg)
|
||||||
{
|
{
|
||||||
static const char *utf8_bom = "\xef\xbb\xbf";
|
static const char utf8_bom[] = "\xef\xbb\xbf";
|
||||||
|
|
||||||
if (cfg->reader.buffer.len < sizeof(utf8_bom))
|
if (cfg->reader.buffer.len < sizeof(utf8_bom))
|
||||||
return GIT_SUCCESS;
|
return GIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user