Closed
Bug 131390
Opened 23 years ago
Closed 12 years ago
Unitialized variables in js/src/xpconnect/src
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: hjtoi-bugzilla, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
2.92 KB,
patch
|
Details | Diff | Splinter Review |
I decided to take a look at these, and found one that actually is real. The
others seem to be just the compiler's inability to realize that they will never
be used uninitialized.
Reporter | ||
Comment 1•23 years ago
|
||
This is real if we jump through goto to done before initializing:
js/src/xpconnect/src/xpcwrappednative.cpp:1627
`uint8 paramCount' might be used uninitialized in this function
1625 const nsXPTMethodInfo* methodInfo;
1626 uint8 requiredArgs;
1627 uint8 paramCount;
1628 jsval src;
1629 nsresult invokeResult;
I fixed the other ones so that it will be easier to notice new errors.
Comment 3•21 years ago
|
||
This patch to remove warnings of unitialized variables still seems to be
relevant. Do we want to take it?
Updated•16 years ago
|
Assignee: general → nobody
QA Contact: gerardok → general
Updated•14 years ago
|
Blocks: buildwarning
![]() |
||
Comment 4•12 years ago
|
||
All variables named |paramCount| in js/xpconnect/src/XPCWrappedNative.cpp (as it's now called) are initialized at declaration time.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•