From 15f52ae1d63712a831e02d02cfe1c84c80dc0ef5 Mon Sep 17 00:00:00 2001 From: schu Date: Mon, 19 Dec 2011 15:59:13 +0100 Subject: [PATCH] config_file: fix clang sizeof-pointer-memaccess --- src/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;