fix seg fault when using bad runtime file, such as a dir

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-03-11 08:42:16 +00:00
commit 1d566d2cbd

View file

@ -289,7 +289,6 @@ static void SWIG_dump_runtime() {
runtime = NewFile(outfile, "w");
if (!runtime) {
Printf(stderr, "*** Unable to open '%s'\n", outfile);
Close(runtime);
SWIG_exit(EXIT_FAILURE);
}