Closed
Bug 283670
Opened 19 years ago
Closed 19 years ago
[Coverity] Uninitialized rowCount var in nsAutoCompleteController::RowIndexToSearch
Categories
(Toolkit :: Autocomplete, defect)
Toolkit
Autocomplete
Tracking
()
RESOLVED
FIXED
People
(Reporter: brendan, Assigned: brendan)
References
(Blocks 1 open bug)
Details
(Keywords: coverity)
Attachments
(1 file)
2.46 KB,
patch
|
bryner
:
first-review+
dveditz
:
second-review+
|
Details | Diff | Splinter Review |
Coverity's SWAT static analyzer suite found this one. It's obvious, and once you initialize rowCount to 1, the whole if (searchResult == ...FAILURE) {...} becomes dead code. Patch next. /be
Assignee | ||
Comment 1•19 years ago
|
||
Only issue is what hewitt might have had in mind with that GetErrorDescription call. Might have been late-night copy-paste programming -- elsewhere, when not failing, the error string is returned as a result string from other methods, e.g., nsAutoCompleteController::GetResultValueAt. Fixed a few bogusly selective or "partial" else after returns too. /be
Attachment #175572 -
Flags: second-review?(dveditz)
Attachment #175572 -
Flags: first-review?(bryner)
Comment 2•19 years ago
|
||
Comment on attachment 175572 [details] [diff] [review] fix r=dveditz
Attachment #175572 -
Flags: second-review?(dveditz) → second-review+
Updated•19 years ago
|
Attachment #175572 -
Flags: first-review?(bryner) → first-review+
Assignee | ||
Comment 3•19 years ago
|
||
Fixed on trunk. Nominate for 1.0.2 when you can. /be
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Flags: in-testsuite-
Updated•6 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•