[PATCH 1/4] Check for null pointers before strcmp. (LLVM/Clang)

David Laight david at l8s.co.uk
Sat Jun 11 05:27:19 CDT 2011


On Sat, Jun 11, 2011 at 01:15:42AM +0300, Lauri Kentt? wrote:
> 
> >Second, the ok output message also dereferences pdst by printing it
> 
> That's not true. "%s" formats null pointers as "(null)" instead of 
> dereferencing anything.

That isn't a requirement of the C language, there are many implemenations
which will fault.

	David

-- 
David Laight: david at l8s.co.uk



More information about the wine-devel mailing list