aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-08 01:53:31 -0800
committerVinson Lee <[email protected]>2010-02-08 01:53:31 -0800
commit7da1a528b8e8dea97586e945c4eb7a5da6dbf7d8 (patch)
tree520b15197b321622eb167d5bf0d6c4299bdeea94 /progs/xdemos
parenteaf8fe657f4cd30c0c1da20c4acf43e077783fcd (diff)
progs/xdemos: Silence uninitialized variable warning.
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/texture_from_pixmap.c2
1 files changed, 1 insertions, 1 deletions
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++) {