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 — src: add null check to GetCategoryGroupEnabled() · nodejs/node@7acfacb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_trace_events.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_trace_events.cc‎

Copy file name to clipboardExpand all lines: src/node_trace_events.cc
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ static std::unordered_set<std::string> categoryGroups;
9595
// Gets a pointer to the category-enabled flags for a tracing category group,
9696
// if tracing is enabled for it.
9797
static const uint8_t* GetCategoryGroupEnabled(const char* category_group) {
98-
if (category_group == nullptr) return nullptr;
99-
100-
return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group);
98+
CHECK_NOT_NULL(category_group);
99+
return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group);
101100
}
102101

103102
static const char* GetCategoryGroup(Environment* env,

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.