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

Jeremy Huddleston jeremyhu at apple.com
Mon Nov 28 09:09:42 PST 2011


On Nov 25, 2011, at 3:44 PM, Keith Packard wrote:

> 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.

That seems like a second patch, independent of this one...





More information about the xorg-devel mailing list