From: ehofman Date: Mon, 4 Aug 2003 17:05:12 +0000 (+0000) Subject: Add a safety precausion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d5c1de5d341f8cdfafa89d7f468570a80ed930f;p=simgear.git Add a safety precausion --- diff --git a/simgear/screen/extensions.cxx b/simgear/screen/extensions.cxx index 99a17086..c16509f6 100644 --- a/simgear/screen/extensions.cxx +++ b/simgear/screen/extensions.cxx @@ -33,6 +33,9 @@ bool SGSearchExtensionsString(char *extString, char *extName) { char *p, *end; int n, extNameLen; + if ((extString == NULL) || (extName == NULL)) + return false; + extNameLen = strlen(extName); p=extString;