Re: BUGed to death

From: Andrew Morton (akpm@digeo.com)
Date: Mon Apr 14 2003 - 16:50:28 EST


Dave Jones <davej@codemonkey.org.uk> wrote:
>
> On Mon, Apr 14, 2003 at 01:55:40PM -0700, Martin J. Bligh wrote:
>
> > True - however I should have included some more info ... Andrew worked
> > out that some of the hottest ones lead to a null ptr dereference
> > immediately afterwards anyways, so they're actually pointless.
>
> Erk, that doesn't sound good. Example ?
>

        if (foo == NULL)
                BUG();
        *foo = bar;

The BUG is a waste of space.

-
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/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:34 EST