| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 029567a commit 7eb9f6f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,12 +36,12 @@ struct Argv { | |||
| 36 | 36 | ||
| 37 | 37 | Argv(const std::initializer_list<const char*> &args) { | |
| 38 | 38 | nr_args_ = args.size(); | |
| 39 | - int totalLen = 0; | ||
| 39 | + int total_len = 0; | ||
| 40 | 40 | for (auto it = args.begin(); it != args.end(); ++it) { | |
| 41 | - totalLen += strlen(*it) + 1; | ||
| 41 | + total_len += strlen(*it) + 1; | ||
| 42 | 42 | } | |
| 43 | 43 | argv_ = static_cast<char**>(malloc(nr_args_ * sizeof(char*))); | |
| 44 | - argv_[0] = static_cast<char*>(malloc(totalLen)); | ||
| 44 | + argv_[0] = static_cast<char*>(malloc(total_len)); | ||
| 45 | 45 | int i = 0; | |
| 46 | 46 | int offset = 0; | |
| 47 | 47 | for (auto it = args.begin(); it != args.end(); ++it, ++i) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments