Skip to content

Commit

Permalink
Added - for no pattern. [code]
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGray-APH authored and bertfrees committed Sep 7, 2015
1 parent 509cee0 commit f0e331e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion liblouis/compileTranslationTable.c
Expand Up @@ -3857,9 +3857,15 @@ static int pattern_compile(const widechar *input, const int input_max, widechar
int esc;
int i;

rnxt = icrs = 0;
icrs = iend = inxt = 0;
rcrs = 1;
rnxt = rcnt = 0;
expr[rnxt] = PTN_LAST;

/* no pattern */
if(input[0] == '-' && input_max == 1)
return 1;

while(icrs < input_max)
{
if(rcrs >= expr_max)
Expand Down

0 comments on commit f0e331e

Please sign in to comment.