Fixed previous patch for the case when no file is founded

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-11-21 20:47:58 +00:00
commit 3f9a029c43

View file

@ -79,7 +79,7 @@ copy_location(DOH *s1, DOH *s2) {
static String *cpp_include(String_or_char *fn) {
String *s;
s = Swig_include(fn);
if (single_include) {
if (s && single_include) {
String *file = Getfile(s);
if (Getattr(included_files,file)) {
Delete(s);