fix wrong assert
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
14c8826830
commit
4118509a84
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ Swig_add_directory(const String_or_char *dirname) {
|
|||
if (dirname) {
|
||||
dir = NewString((char *) dirname);
|
||||
assert(dir);
|
||||
Setattr(dir,"sysdir","1");
|
||||
Setattr(dir,k_sysdir,"1");
|
||||
Append(directories, dir);
|
||||
Delete(dir);
|
||||
}
|
||||
|
|
@ -156,7 +156,7 @@ Swig_search_path_any(int syspath) {
|
|||
#endif
|
||||
if (syspath) {
|
||||
llist = NewList();
|
||||
assert(slist);
|
||||
assert(llist);
|
||||
Append(llist,filename);
|
||||
} else {
|
||||
Append(slist,filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue