Closed Bug 336966 Opened 19 years ago Closed 19 years ago

Useless null check of shell in nsXIEngine::DeleteXPIs

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
Linux
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: sciguyryan)

References

()

Details

(Keywords: coverity)

Attachments

(1 file)

the caller that matters is careful: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/mozapps/installer/unix/wizard/nsInstallDlg.cpp&rev=1.3&mark=598-602,650#597 since this is a fairly internal function there's no point in including the null check.
Attached patch Patch v1Splinter Review
First try at a patch, removing the null check |if (!aComps || !mOriginalDir)| and its return.
Attachment #239396 - Flags: review?(benjamin)
Assignee: xpi-engine → sciguyryan+bugzilla
Comment on attachment 239396 [details] [diff] [review] Patch v1 Since only seamonkey uses the linux installer (and I think even that's moving away), I'm not reviewing patches for that any more. Let's try CTho.
Attachment #239396 - Flags: review?(benjamin) → review?(cst)
Comment on attachment 239396 [details] [diff] [review] Patch v1 Sorry, I don't build on platforms that use this file, and I wouldn't know how to test that it doesn't break anything either.
Attachment #239396 - Flags: review?(cst) → review?(ajschult)
Attachment #239396 - Flags: review?(ajschult) → review+
FIXED
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: