Closed Bug 695025 Opened 13 years ago Closed 13 years ago

don't use false when we really mean NULL

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

The JS engine has several places where we return false from methods that return pointer types.  We should be returning NULL instead.  (These locations were caught by GCC 4.7's -Wconversion-null flag.)  Patch incoming.
Attachment #567478 - Flags: review?(luke)
Comment on attachment 567478 [details] [diff] [review]
s/false/NULL/ in appropriate places

Thanks!
Attachment #567478 - Flags: review?(luke) → review+
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/cb73d6774bb0

Thanks for the patch!
Assignee: general → nfroyd
Status: NEW → ASSIGNED
Keywords: checkin-needed
Target Milestone: --- → mozilla10
https://hg.mozilla.org/mozilla-central/rev/cb73d6774bb0
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: