[922] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Don't use NULL when you need an integer.

daemon@ATHENA.MIT.EDU (raeburn@cygnus.com)
Tue Nov 1 16:01:12 1994

From: raeburn@cygnus.com
Date: Tue, 1 Nov 1994 15:53:17 -0500
To: "Richard Basch" <basch@MIT.EDU>
Cc: krb5-bugs@MIT.EDU


I don't believe there is any guarantee that NULL cast to an integral
type will give you zero.  Even if it does, it's ugly.

Just use 0 (or '\0', if appropriate).

home help back first fref pref prev next nref lref last post