fix seg fault when using bad runtime file, such as a dir
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
13bf804ea6
commit
fd947483fa
1 changed files with 0 additions and 1 deletions
|
|
@ -289,7 +289,6 @@ static void SWIG_dump_runtime() {
|
||||||
runtime = NewFile(outfile, "w");
|
runtime = NewFile(outfile, "w");
|
||||||
if (!runtime) {
|
if (!runtime) {
|
||||||
Printf(stderr, "*** Unable to open '%s'\n", outfile);
|
Printf(stderr, "*** Unable to open '%s'\n", outfile);
|
||||||
Close(runtime);
|
|
||||||
SWIG_exit(EXIT_FAILURE);
|
SWIG_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue