[lvm-devel] [PATCH 11/30] Fix theoretical usage of NULL pointer dereference

ejt at redhat.com ejt at redhat.com
Mon Oct 25 10:24:26 UTC 2010


At Mon, 25 Oct 2010 10:24:18 +0200,
Zdenek Kabelac wrote:
> 
> clang seems to be happier with this check.
> 
> Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>

Nack, this can't happen.  Or rather if it does something has gone badly wrong.  So if (!*c) { stack; return 0; } would be better.




More information about the lvm-devel mailing list