Fix segfault when using -perl -v
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f2c57bd508
commit
ff62288c37
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
Version 1.3.38 (in progress)
|
Version 1.3.38 (in progress)
|
||||||
================================
|
================================
|
||||||
|
|
||||||
|
2008-01-15: wsfulton
|
||||||
|
[Perl] Fix seg fault when running with -v option, reported by John Ky.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1139,8 +1139,9 @@ public:
|
||||||
|
|
||||||
/* Do some work on the class name */
|
/* Do some work on the class name */
|
||||||
if (verbose > 0) {
|
if (verbose > 0) {
|
||||||
|
String *modulename = Getattr(clsmodule, "name");
|
||||||
fprintf(stdout, "setclassname: Found sym:name: %s\n", Char(symname));
|
fprintf(stdout, "setclassname: Found sym:name: %s\n", Char(symname));
|
||||||
fprintf(stdout, "setclassname: Found module: %s\n", Char(clsmodule));
|
fprintf(stdout, "setclassname: Found module: %s\n", Char(modulename));
|
||||||
fprintf(stdout, "setclassname: No package found\n");
|
fprintf(stdout, "setclassname: No package found\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue