[PATCH] Fix segfault when there's no config dir

Keith Packard keithp at keithp.com
Fri Nov 25 15:44:13 PST 2011


On Fri, 25 Nov 2011 16:38:06 -0200, przanoni at gmail.com wrote:
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
> 
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
> ---
>  hw/xfree86/parser/scan.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> Sorry. I guess this should be pushed soon...

I'd rather see the scandir return value checked for an error, otherwise
the code depends on the current implementation of AddConfigDirFiles
which seems rather fragile.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111125/64bae205/attachment.pgp>


More information about the xorg-devel mailing list