#195 [lua] no need to check for null before delete

closed-fixed
None
5
2008-02-07
2007-12-14
Jacek Sieka
No

Both free and delete are safe to call with null, no need to check for it...

Discussion

  • Jacek Sieka
    Jacek Sieka
    2007-12-14

    remove null check

     
    Attachments
  • Olly Betts
    Olly Betts
    2008-02-01

    • assigned_to: nobody --> gga73
     
  • Olly Betts
    Olly Betts
    2008-02-01

    Logged In: YES
    user_id=14972
    Originator: NO

    Yes, this is true (except for some pre-ANSI C compilers, but those are completely irrelevant nowadays).

    I'm pretty sure I saw a commit for something like this recently. Has this patch been applied? If so, we should close it...

     
  • Mark Gossage
    Mark Gossage
    2008-02-07

    Logged In: YES
    user_id=639496
    Originator: NO

    its in the svn, thanks for the reminder

     
  • Mark Gossage
    Mark Gossage
    2008-02-07

    • status: open --> closed-fixed