From 7da1a528b8e8dea97586e945c4eb7a5da6dbf7d8 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 8 Feb 2010 01:53:31 -0800 Subject: [PATCH] progs/xdemos: Silence uninitialized variable warning. --- progs/xdemos/texture_from_pixmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progs/xdemos/texture_from_pixmap.c b/progs/xdemos/texture_from_pixmap.c index ab215b0ac30..5f2fbc3f129 100644 --- a/progs/xdemos/texture_from_pixmap.c +++ b/progs/xdemos/texture_from_pixmap.c @@ -86,7 +86,7 @@ ChoosePixmapFBConfig(Display *display) { int screen = DefaultScreen(display); GLXFBConfig *fbconfigs; - int i, nfbconfigs, value; + int i, nfbconfigs = 0, value; fbconfigs = glXGetFBConfigs(display, screen, &nfbconfigs); for (i = 0; i < nfbconfigs; i++) { -- 2.30.2