xserver: Branch 'master'

Dave Airlie airlied at kemper.freedesktop.org
Sun Apr 13 17:54:48 PDT 2008


 GL/glx/glxglcore.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c61087c82784633e522bd9392172b43656bdf45e
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Apr 14 10:47:28 2008 +1000

    glcore: zero fbconfigs before filling them in.
    
    I'm not sure this the complete proper solution, perhaps it should explicitly fill
    in ever field.
    
    This at least makes glxinfo on glcore return sensible information, it doesn't make
    gears work yet though.

diff --git a/GL/glx/glxglcore.c b/GL/glx/glxglcore.c
index 972ab88..16064a9 100644
--- a/GL/glx/glxglcore.c
+++ b/GL/glx/glxglcore.c
@@ -317,7 +317,7 @@ createFBConfigsForVisual(__GLXscreen *screen, ScreenPtr pScreen,
     for (back = numBack - 1; back >= 0; back--)
 	for (depth = 0; depth < numDepth; depth++)
 	    for (stencil = 0; stencil < numStencil; stencil++) {
-		config->next = xalloc(sizeof *config);
+		config->next = xcalloc(sizeof(*config), 1);
 		config = config->next;
 
 		config->visualType = glx_visual_types[visual->class];


More information about the xorg-commit mailing list