Closed Bug 59669 Opened 19 years ago Closed 19 years ago

Occurances of uninitialized variables being used before being set.

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: rich.burridge, Assigned: harishd)

References

Details

For more details on this problem, see:

http://bugzilla.mozilla.org/show_bug.cgi?id=59652

This bug is just for the warnings in various source files in the
HTML Element module:

nsParserModule.cpp:269: warning: `nsresult rv' might be used uninitialized in
this function
----
Blocks: 59652
nsParserModule.cpp is parser stuff.

-> harishd
Assignee: clayton → harishd
Okay, the following diff should take care of the problem

Index: nsParserModule.cpp
===================================================================
RCS file: /cvsroot/mozilla/htmlparser/src/nsParserModule.cpp,v
retrieving revision 1.19
diff -u -w -r1.19 nsParserModule.cpp
--- nsParserModule.cpp  2000/10/28 22:14:11     1.19
+++ nsParserModule.cpp  2000/12/11 19:23:47
@@ -266,7 +266,7 @@
                                const nsIID& aIID,
                                void** r_classObj)
 {
-  nsresult rv;
+  nsresult rv=NS_OK;

   if (!mInitialized) {
     rv = Initialize();
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.8
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
it's not initialized. Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
qa contact updated.
QA Contact: gerardok → bsharma
Marked verified as per the above developer comments.
Status: RESOLVED → VERIFIED
SPAM. HTML Element component is deprecated, changing to Layout component. See
bug 88132 for details.
Come on Bugzilla, you can do it...
Component: HTML Element → Layout
You need to log in before you can comment on or make changes to this bug.