Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] Re: No check for player!=NULL in player.c diplomatic state
Home

[Freeciv-Dev] Re: No check for player!=NULL in player.c diplomatic state

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jason Dorje Short <jdorje@xxxxxxxxx>
Cc: Egor Vyscrebentsov <evyscr@xxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: No check for player!=NULL in player.c diplomatic state functions
From: Michael Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jul 2006 16:03:12 -0500

On Wed, Jul 12, 2006 at 04:58:04PM -0400, Jason Dorje Short wrote:
> 
> A dereference is just as good as an assert.  It will crash if a NULL 
> value is passed in.

I'm not sure this is always the case depending on how gcc is compiled.

-mike



[Prev in Thread] Current Thread [Next in Thread]