nsBidiPresUtils::FormatUnicodeText can return uninitialized nsresult

RESOLVED FIXED

Status

()

--
trivial
RESOLVED FIXED
17 years ago
10 years ago

People

(Reporter: mozilla-bugs, Assigned: mkaply)

Tracking

Trunk
x86
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

17 years ago
nsBidiPresUtils::FormatUnicodeText declares and returns "nsresult rv", however
this variable is only initialized on one (of many) code execution path. Hence,
the declaration should be changed from

nsresult rv;

to 

nsresult rv = NS_OK;
(Reporter)

Updated

17 years ago
Blocks: 59652

Comment 1

17 years ago
reassign to mkaply@us.ibm.com
Assignee: erik → mkaply
Component: Layout → BiDi Hebrew & Arabic
For some reason this bug never turned up on my radar before today. Marking
dependence on bug 81664 since the patch in attachment 40880 [details] [diff] [review] contains the
required initialization.
Depends on: 81664
(Assignee)

Comment 3

17 years ago
Fixed by 81664
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED

Updated

10 years ago
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: chrispetersen → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.