[lkml]   [2004]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Use NULL instead of integer 0 in security/selinux/

    Linus Torvalds wrote:

    > It's not about "unsafe". It's about being WRONG.
    > The fact is, people who write "0" are either living in the stone age, or
    > are not sure about the type. "0" is an _integer_. It's not a pointer. It
    > may be legal C, but that doesn't make it right anyway. "0" also happens to
    > be one of the more _common_ integers, so mistakes happen.

    Not to be picky, and I realize that we're not using C++ here, and it may
    not apply, but every C++ text I've read deprecates NULL and says to use
    0. That is, THE WAY that you specify a null pointer in C++ is with a
    zero. It's no surprise that C programmers might pick up that habit.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:04    [W:0.019 / U:53.960 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site