Commit 15f52ae1 by schu

config_file: fix clang sizeof-pointer-memaccess

parent 6d39c0dd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment