Fix segfault in handling unknown directives

This commit is contained in:
Olly Betts 2015-03-27 18:14:03 +13:00
commit 6b6b360093

View file

@ -886,7 +886,7 @@ int yylex(void) {
return (WARN);
/* 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. */