Messages in this thread | | | From | Herbert Xu <> | Subject | Re: [PATCH 2/8] lib/sort: Replace qsort in XFS | Date | Wed, 02 Feb 2005 21:48:35 +1100 |
| |
Zan Lynx <zlynx@acm.org> wrote: > > And you get in the habit of using 0 instead of NULL and before you know > it you've used it in a variable argument list for a GTK library call on > an AMD64 system and corrupted the stack. :-)
Using NULL without a cast is equally broken in a variadic context. Sure it doesn't break on AMD64 but it'll break on platforms where NULL pointers of different types have different representations. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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/
| |