[asan] fix the Windows build (MSVC says: cannot specify explicit initializer for arrays)
llvm-svn: 260132
This commit is contained in:
parent
e316f76222
commit
bc130af434
|
@ -36,7 +36,9 @@
|
||||||
namespace __asan {
|
namespace __asan {
|
||||||
class ScarinessScore {
|
class ScarinessScore {
|
||||||
public:
|
public:
|
||||||
ScarinessScore() {}
|
ScarinessScore() {
|
||||||
|
descr[0] = 0;
|
||||||
|
}
|
||||||
void Scare(int add_to_score, const char *reason) {
|
void Scare(int add_to_score, const char *reason) {
|
||||||
if (descr[0])
|
if (descr[0])
|
||||||
internal_strlcat(descr, "-", sizeof(descr));
|
internal_strlcat(descr, "-", sizeof(descr));
|
||||||
|
@ -57,7 +59,7 @@ class ScarinessScore {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int score = 0;
|
int score = 0;
|
||||||
char descr[1024] = {0};
|
char descr[1024];
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace __asan
|
} // namespace __asan
|
||||||
|
|
Loading…
Reference in New Issue