We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fac673b commit 1b1f2ccCopy full SHA for 1b1f2cc
1 file changed
src/google/protobuf/compiler/mock_code_generator.cc
@@ -72,7 +72,7 @@ static constexpr absl::string_view kSecondInsertionPoint =
72
" # @@protoc_insertion_point(second_mock_insertion_point) is here\n";
73
74
MockCodeGenerator::MockCodeGenerator(absl::string_view name) : name_(name) {
75
- char* c_key = getenv("TEST_CASE");
+ const char* c_key = getenv("TEST_CASE");
76
if (c_key == NULL) {
77
// In Windows, setting 'TEST_CASE=' is equivalent to unsetting
78
// and therefore c_key can be NULL
0 commit comments