Fix segfault in handling unknown directives
This commit is contained in:
parent
38a75a22c9
commit
6b6b360093
1 changed files with 1 additions and 1 deletions
|
|
@ -886,7 +886,7 @@ int yylex(void) {
|
||||||
return (WARN);
|
return (WARN);
|
||||||
|
|
||||||
/* Note down the apparently unknown directive for error reporting. */
|
/* Note down the apparently unknown directive for error reporting. */
|
||||||
cparse_unknown_directive = Swig_copy_string(yytext);
|
cparse_unknown_directive = NewString(yytext);
|
||||||
}
|
}
|
||||||
/* Have an unknown identifier, as a last step, we'll do a typedef lookup on it. */
|
/* Have an unknown identifier, as a last step, we'll do a typedef lookup on it. */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue