init_pos was always set to 2. And the ordinal encoded prefix might
be of length 1. Hence the first character would not be part of regular
expression _with_ errors.
-/* $Id: zrpn.c,v 1.210 2006-03-30 09:52:16 adam Exp $
+/* $Id: zrpn.c,v 1.211 2006-05-09 10:46:56 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
term_dict[prefix_len++] = 1;
term_dict[prefix_len++] = ord_buf[i];
}
+ if (ord_len > init_pos)
+ init_pos = ord_len;
}
bases_ok++;
if (prefix_len)
case 103: /* Regexp-2 */
regex_range = 1;
term_dict[j++] = '(';
- init_pos = 2;
if (!term_103(zh->reg->zebra_maps, reg_type,
&termp, term_dict + j, ®ex_range,
space_split, term_dst))