diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index f5a25c70b5f44c..747ac225b4b53d 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -36,12 +36,12 @@ struct Argv { Argv(const std::initializer_list &args) { nr_args_ = args.size(); - int totalLen = 0; + int total_len = 0; for (auto it = args.begin(); it != args.end(); ++it) { - totalLen += strlen(*it) + 1; + total_len += strlen(*it) + 1; } argv_ = static_cast(malloc(nr_args_ * sizeof(char*))); - argv_[0] = static_cast(malloc(totalLen)); + argv_[0] = static_cast(malloc(total_len)); int i = 0; int offset = 0; for (auto it = args.begin(); it != args.end(); ++it, ++i) {