Commit 2c19b5658c084df7a4cb475dfbd8347431aa4482

Vicent Martí 2012-02-13T07:02:42

Merge pull request #474 from schu/clang-unused Fix "clang warning: expression result unused"

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/config_file.c b/src/config_file.c
index 481c593..82b00b9 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;