On Fri, 16 Apr 2010 11:19:05 -0700
Dan Nicholson <[email protected]> wrote:

> On Fri, Apr 16, 2010 at 10:16 AM, Éric Piel <[email protected]> wrote:
> > ... and you probably want to check de is not NULL as well :-)
> 
> Actually, this function is only over called as the filter for scandir.
> I doubt that scandir will be passing it a NULL dirent, but I can't say
> that for sure.
> 
> --
> Dan

This is a classic case for putting some kind of assertion in
there to catch violations of the calling convention. No need to fork
control flow for this... 

cheers,
Flo 
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to