From cc22c507c2805c4de7e0e082c1ecb7864a2065a0 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 21 Nov 2003 20:47:58 +0000 Subject: [PATCH] Fixed previous patch for the case when no file is founded git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5364 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Preprocessor/cpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Preprocessor/cpp.c b/Source/Preprocessor/cpp.c index 12ed4e9cd..4c543e924 100644 --- a/Source/Preprocessor/cpp.c +++ b/Source/Preprocessor/cpp.c @@ -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);