Closed
Bug 712510
Opened 13 years ago
Closed 13 years ago
Clang Static Analysis: Garbage return value in content/html/content/src/nsTextEditorState.cpp
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: decoder, Assigned: ehsan.akhgari)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
1.12 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
The following report (in the URL field) has been generated by static analysis using Clang.
It would be good if someone familiar with the particular code could check if
- this is really a bug or a false positive
- and/or if it makes sense to adjust the code (even if there is not a real bug present, e.g. by adding a missing initialization).
In this particular report, the problem seems to be that the | nsresult rv; | variable declared in line 1173 could be returned uninitialized (there exists at least one path through the code). It would probably be good to initialize this variable to a sane default value to be sure.
Not sure which category this belongs to, please move to the right place if you know where this should go :)
Assignee | ||
Comment 1•13 years ago
|
||
I don't see this happening in practice but let's just shut the warning up. :-)
Component: General → Editor
QA Contact: general → editor
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #585567 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Target Milestone: --- → mozilla12
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•