Debian patch: 310_segfault_noGLX.diff

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404034
This commit is contained in:
Sam Lantinga 2009-10-10 10:10:36 +00:00
parent 17a7853ac1
commit cb2bc4152c

View file

@ -77,6 +77,11 @@ static int glXExtensionSupported(_THIS, const char *extension)
/* It takes a bit of care to be fool-proof about parsing the
* OpenGL extensions string. Don't be fooled by sub-strings, etc.
*/
/* http://bugs.debian.org/537487 */
if (extensions == NULL) {
return 0;
}
start = extensions;