We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nodejs
Learn more about funding links in repositories.
Report abuse
1 parent 029567a commit 7eb9f6fCopy full SHA for 7eb9f6f
test/cctest/node_test_fixture.h
@@ -36,12 +36,12 @@ struct Argv {
36
37
Argv(const std::initializer_list<const char*> &args) {
38
nr_args_ = args.size();
39
- int totalLen = 0;
+ int total_len = 0;
40
for (auto it = args.begin(); it != args.end(); ++it) {
41
- totalLen += strlen(*it) + 1;
+ total_len += strlen(*it) + 1;
42
}
43
argv_ = static_cast<char**>(malloc(nr_args_ * sizeof(char*)));
44
- argv_[0] = static_cast<char*>(malloc(totalLen));
+ argv_[0] = static_cast<char*>(malloc(total_len));
45
int i = 0;
46
int offset = 0;
47
for (auto it = args.begin(); it != args.end(); ++it, ++i) {
0 commit comments