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
This commit is contained in:
parent
bb968bc558
commit
cc22c507c2
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) {
|
static String *cpp_include(String_or_char *fn) {
|
||||||
String *s;
|
String *s;
|
||||||
s = Swig_include(fn);
|
s = Swig_include(fn);
|
||||||
if (single_include) {
|
if (s && single_include) {
|
||||||
String *file = Getfile(s);
|
String *file = Getfile(s);
|
||||||
if (Getattr(included_files,file)) {
|
if (Getattr(included_files,file)) {
|
||||||
Delete(s);
|
Delete(s);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue