config_file: fix clang sizeof-pointer-memaccess

This commit is contained in:
schu 2011-12-19 15:59:13 +01:00
parent 6d39c0dd6f
commit 15f52ae1d6

View File

@ -738,7 +738,7 @@ error:
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))
return GIT_SUCCESS;