Closed Bug 188124 Opened 22 years ago Closed 22 years ago

Occurences of uninitialized variables being used before being set (in directory/xpcom)

Categories

(Directory :: LDAP XPCOM SDK, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 152700

People

(Reporter: mozilla-bugs, Assigned: dmosedale)

Details

Attachments

(1 file)

This bug is just for the "xxx might be used uninitialized" warnings in various source files in directory/xpcom. Currently brad TBox shows the following warnings: directory/xpcom/base/src/nsLDAPBERValue.cpp:59 `PRUint8 * array' might be used uninitialized in this function directory/xpcom/base/src/nsLDAPMessage.cpp:589 `nsresult rv' might be used uninitialized in this function P.S. See nug 59652 and 179819 for more information. Bug 59652 is the meta-bug tracking the fight against these (potentially very nasty) warnings and bug 179819 wants such warnings turned into compilation errors.
Attached patch Fixed warnings (deleted) — Splinter Review
* nsLDAPMessage.cpp: Always returns NS_ERROR_OUT_OF_MEMORY since rv is not set. * nsLDAPBERValue.cpp: Moved setting of returned array into if() construct.
Fix and warnings are the same as in bug <A HREF="http://bugzilla.mozilla.org/show_bug.cgi?id=152700">152700</A>.
Yeah, seems like a dup... *** This bug has been marked as a duplicate of 152700 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
No longer blocks: 59652, 179819
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: