GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: update googletest to 305e5a2 · nodejs/node@c01ce60

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/googletest/src
    • gtest.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/googletest/src/gtest.cc‎

Copy file name to clipboardExpand all lines: deps/googletest/src/gtest.cc
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6700,17 +6700,17 @@ void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
67006700
}
67016701

67026702
if (remove_flag) {
6703-
// Shift the remainder of the argv list left by one. Note
6704-
// that argv has (*argc + 1) elements, the last one always being
6705-
// NULL. The following loop moves the trailing NULL element as
6706-
// well.
6707-
for (int j = i; j != *argc; j++) {
6708-
argv[j] = argv[j + 1];
6703+
// Shift the remainder of the argv list left by one.
6704+
for (int j = i + 1; j < *argc; ++j) {
6705+
argv[j - 1] = argv[j];
67096706
}
67106707

67116708
// Decrements the argument count.
67126709
(*argc)--;
67136710

6711+
// Terminate the array with nullptr.
6712+
argv[*argc] = nullptr;
6713+
67146714
// We also need to decrement the iterator as we just removed
67156715
// an element.
67166716
i--;

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.