Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 695025 - don't use false when we really mean NULL
: don't use false when we really mean NULL
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: unspecified
: All All
: -- normal (vote)
: mozilla10
Assigned To: Nathan Froyd [:froydnj]
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2011-10-17 09:34 PDT by Nathan Froyd [:froydnj]
Modified: 2011-10-18 05:38 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

s/false/NULL/ in appropriate places (2.55 KB, patch)
2011-10-17 09:38 PDT, Nathan Froyd [:froydnj]
luke: review+
Details | Diff | Splinter Review

Description Nathan Froyd [:froydnj] 2011-10-17 09:34:34 PDT
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.
Comment 1 Nathan Froyd [:froydnj] 2011-10-17 09:38:35 PDT
Created attachment 567478 [details] [diff] [review]
s/false/NULL/ in appropriate places
Comment 2 Luke Wagner [:luke] 2011-10-17 09:55:07 PDT
Comment on attachment 567478 [details] [diff] [review]
s/false/NULL/ in appropriate places

Comment 3 Jeff Walden [:Waldo] (remove +bmo to email) 2011-10-17 14:45:14 PDT

Thanks for the patch!
Comment 4 Marco Bonardo [::mak] 2011-10-18 05:38:31 PDT

Note You need to log in before you can comment on or make changes to this bug.