diff options
author | schu <schu-github@schulog.org> | 2011-12-19 15:59:13 +0100 |
---|---|---|
committer | schu <schu-github@schulog.org> | 2012-02-13 13:30:04 +0100 |
commit | 15f52ae1d63712a831e02d02cfe1c84c80dc0ef5 (patch) | |
tree | 3668a4eb650817da8da3e8c7d5fc82254bebfd0f | |
parent | 6d39c0dd6fc138fdd994e7b31ab7f5eed85d2688 (diff) | |
download | libgit2-15f52ae1d63712a831e02d02cfe1c84c80dc0ef5.tar.gz |
config_file: fix clang sizeof-pointer-memaccess
-rw-r--r-- | src/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c index 481c593f4..82b00b987 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -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; |