Messages in this thread | | | Date | Thu, 08 Jul 2004 12:09:32 -0400 | From | Timothy Miller <> | Subject | Re: [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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |