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 — module: fix recently introduced coverity warning · nodejs/node@4eedf5e

File tree

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

‎src/node_modules.cc‎

Copy file name to clipboardExpand all lines: src/node_modules.cc
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ const BindingData::PackageConfig* BindingData::GetPackageJSON(
153153
return throw_invalid_package_config();
154154
}
155155

156+
// based on coverity using key with == derefs the raw value
157+
// avoid derefing if its null
158+
if (key.raw() == nullptr) continue;
159+
156160
if (key == "name") {
157161
// Though there is a key "name" with a corresponding value,
158162
// the value may not be a string or could be an invalid JSON string

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.