Skip to content

Commit

Permalink
removed unused len parameter from yyl_dblquote()
Browse files Browse the repository at this point in the history
The len variable is used, but the value is overwritten before being
read.
  • Loading branch information
tonycoz committed Apr 27, 2020
1 parent 4aca41a commit 91a0dcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toke.c
Expand Up @@ -6594,9 +6594,10 @@ yyl_sglquote(pTHX_ char *s)
}

static int
yyl_dblquote(pTHX_ char *s, STRLEN len)
yyl_dblquote(pTHX_ char *s)
{
char *d;
STRLEN len;
s = scan_str(s,FALSE,FALSE,FALSE,NULL);
DEBUG_T( {
if (s)
Expand Down Expand Up @@ -9021,7 +9022,7 @@ yyl_try(pTHX_ char *s, STRLEN len)
return yyl_sglquote(aTHX_ s);

case '"':
return yyl_dblquote(aTHX_ s, len);
return yyl_dblquote(aTHX_ s);

case '`':
return yyl_backtick(aTHX_ s);
Expand Down

0 comments on commit 91a0dcf

Please sign in to comment.