Skip to content

Commit

Permalink
[js] Initialize variable before use.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Apr 30, 2016
1 parent c459573 commit 1daaef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vm/js/RegexCompiler.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ class RegexCompiler {
else {
my @code;

@code.push("$rep = 0;\n");

if $min == 0 { @code.push(self.mark($done,$!pos,0)) }
elsif $needmark { @code.push(self.mark($done,-1,0)) }

Expand Down

0 comments on commit 1daaef5

Please sign in to comment.