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:
parent
2fad2ef97e
commit
3f9a029c43
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue