Fix warnings from dbmfStrdup() change
This commit is contained in:
1 parent
61e82ee1ae
commit
6e6ae4354b
1 file changed
+2
-2
@@ -24,13 +24,13 @@ bareword [a-zA-Z0-9_\-+:./\\\[\]<>;]
|
||||
|
||||
{doublequote}({dstringchar}|{escape})*{doublequote} |
|
||||
{singlequote}({sstringchar}|{escape})*{singlequote} {
|
||||
yylval.Str = dbmfStrdup(yytext+1);
|
||||
yylval.Str = dbmfStrdup((char *) yytext+1);
|
||||
yylval.Str[strlen(yylval.Str)-1] = '\0';
|
||||
return(QUOTE);
|
||||
}
|
||||
|
||||
{bareword}+ {
|
||||
yylval.Str = dbmfStrdup(yytext);
|
||||
yylval.Str = dbmfStrdup((char *) yytext);
|
||||
return(WORD);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user