[lvm-devel] [PATCH 22/29] Ensure pointer first is notnull before dereference

Alasdair G Kergon agk at redhat.com
Mon Nov 29 21:56:51 UTC 2010


On Thu, Nov 25, 2010 at 11:55:26AM +0100, Zdenek Kabelac wrote:
> Modify code to put check into local function.
 
I find the proposed version more obscure and prefer it the way it is now, where
we do an explicit check up-front instead of burying it inside another function,
seemingly as a side-effect.

Alasdair




More information about the lvm-devel mailing list