[asan] fix the Windows build (MSVC says: cannot specify explicit initializer for arrays)

llvm-svn: 260132
This commit is contained in:
Kostya Serebryany 2016-02-08 19:33:36 +00:00
parent e316f76222
commit bc130af434
1 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,9 @@
namespace __asan {
class ScarinessScore {
public:
ScarinessScore() {}
ScarinessScore() {
descr[0] = 0;
}
void Scare(int add_to_score, const char *reason) {
if (descr[0])
internal_strlcat(descr, "-", sizeof(descr));
@ -57,7 +59,7 @@ class ScarinessScore {
private:
int score = 0;
char descr[1024] = {0};
char descr[1024];
};
} // namespace __asan