X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2Fextensions.cxx;h=75f7d11e7655594004f6fc3340564dc03635469a;hb=d7d13e458c759c4030db15d2e9b3cdcc5fc63f5f;hp=4acf0e260160efcea9e8492fc48f75dc080f1bdf;hpb=ab34b86574c951f5a3ee6edaa5bfe2010c9b6e44;p=simgear.git diff --git a/simgear/screen/extensions.cxx b/simgear/screen/extensions.cxx index 4acf0e26..75f7d11e 100644 --- a/simgear/screen/extensions.cxx +++ b/simgear/screen/extensions.cxx @@ -24,23 +24,18 @@ #include -#ifdef WIN32 -#include -#endif - -#if !defined( WIN32 ) && !defined( __APPLE__ ) -#include -#endif - #include "extensions.hxx" -bool SGSearchExtensionsString(char *extString, char *extName) { +static bool SGSearchExtensionsString(char *extString, char *extName) { // Returns GL_TRUE if the *extName string appears in the *extString string, // surrounded by white spaces, or GL_FALSE otherwise. char *p, *end; int n, extNameLen; + if ((extString == NULL) || (extName == NULL)) + return false; + extNameLen = strlen(extName); p=extString;