Skip to content

Commit 8427180

Browse files
committed
Add const to array in example
1 parent c72133d commit 8427180

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/expat/expat_example.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
#include "src/libfuzzer/libfuzzer_macro.h"
2222

2323
namespace {
24-
protobuf_mutator::protobuf::LogSilencer log_silincer;
25-
std::vector<const char*> kEncodings = {{"UTF-16", "UTF-8", "ISO-8859-1",
26-
"US-ASCII", "UTF-16BE", "UTF-16LE",
27-
"INVALIDENCODING"}};
24+
const std::vector<const char*> kEncodings = {{"UTF-16", "UTF-8", "ISO-8859-1",
25+
"US-ASCII", "UTF-16BE",
26+
"UTF-16LE", "INVALIDENCODING"}};
2827
}
2928

3029
DEFINE_PROTO_FUZZER(const protobuf_mutator::xml::Input& message) {

0 commit comments

Comments
 (0)