From 1d5c1de5d341f8cdfafa89d7f468570a80ed930f Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 4 Aug 2003 17:05:12 +0000 Subject: [PATCH] Add a safety precausion --- simgear/screen/extensions.cxx | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5