Bug 647552 - Uninitialized variables in GLXLibrary::EnsureInitialized; r=bjacob
authorMs2ger <ms2ger@gmail.com>
Thu, 07 Apr 2011 21:55:10 -0700
changeset 67644 8b6d59ff790fb60848fe8171c023a366b0b2effa
parent 67643 4910cd19bc9a2d6caf5950a6abac38a91ca74871
child 67645 d74ffcefded77024aedaf09023008f4fdb236c05
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs647552
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 647552 - Uninitialized variables in GLXLibrary::EnsureInitialized; r=bjacob
gfx/thebes/GLContextProviderGLX.cpp
--- a/gfx/thebes/GLContextProviderGLX.cpp
+++ b/gfx/thebes/GLContextProviderGLX.cpp
@@ -191,19 +191,19 @@ GLXLibrary::EnsureInitialized()
                    "blacklisted to avoid crashes that happen in some "
                    "situations. If you would like to bypass this, set the "
                    "MOZ_GLX_IGNORE_BLACKLIST environment variable.\n");
             return PR_FALSE;
         }
     }
 
     int screen = DefaultScreen(display);
-    const char *serverVendor;
-    const char *serverVersionStr;
-    const char *extensionsStr;
+    const char *serverVendor = NULL;
+    const char *serverVersionStr = NULL;
+    const char *extensionsStr = NULL;
 
     // This scope is covered by a ScopedXErrorHandler to catch X errors in GLX
     // calls.  See bug 632867 comment 3: Mesa versions up to 7.10 cause a
     // BadLength error during the first GLX call that communicates with the
     // server when the server GLX version < 1.3.
     {
         ScopedXErrorHandler xErrorHandler;