possible uninitialized variable use in xpcwrappednativeproto.cpp

RESOLVED FIXED in mozilla9

Status

()

Core
XPConnect
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: jdm, Assigned: Atul Aggarwal)

Tracking

(Blocks: 1 bug)

Trunk
mozilla9
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [build_warning])

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
js/src/xpconnect/src/xpcwrappednativeproto.cpp:218: warning: ‘map’ may be used uninitialized in this function
js/src/xpconnect/src/xpcwrappednativeproto.cpp:219: warning: ‘lock’ may be used uninitialized in this function
(Reporter)

Updated

7 years ago
Whiteboard: [build_warning]

Updated

6 years ago
Blocks: 187528
(Assignee)

Comment 1

6 years ago
Created attachment 557295 [details] [diff] [review]
Patch v1 to fix warning

It is false warning but it never hurts to assign null to pointers.

Note, I could not test this patch.
Assignee: nobody → atulagrwl
Status: NEW → ASSIGNED
Attachment #557295 - Flags: review?(benjamin)
Attachment #557295 - Flags: review?(benjamin) → review+
(Assignee)

Updated

6 years ago
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/0694b11060ae

Updated

6 years ago
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/0694b11060ae
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.