xserver: Branch 'master'
Ian Romanick
idr at kemper.freedesktop.org
Tue Feb 17 08:28:37 PST 2009
glx/glxscreens.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4039603413f9f46d7f725463a70b4a51838e0049
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Feb 17 08:27:32 2009 -0800
glx: Inialize best_score before calculating visual scores
This bug was pointed out by Peter Ã
strand.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
diff --git a/glx/glxscreens.c b/glx/glxscreens.c
index 87119fb..6f68b06 100644
--- a/glx/glxscreens.c
+++ b/glx/glxscreens.c
@@ -354,7 +354,7 @@ static __GLXconfig *
pickFBConfig(__GLXscreen *pGlxScreen, VisualPtr visual)
{
__GLXconfig *best = NULL, *config;
- int best_score;
+ int best_score = 0;
for (config = pGlxScreen->fbconfigs; config != NULL; config = config->next) {
int score = 0;
More information about the xorg-commit
mailing list