tweak match

This commit is contained in:
Connor Lane Smith 2011-09-20 00:09:20 +01:00
parent 0582480801
commit 4c8d43ab73
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ match(void) {
appenditem(item, &lsubstr, &substrend);
}
if(lprefix) {
if(matchend) {
if(matches) {
matchend->right = lprefix;
lprefix->left = matchend;
}
@ -401,7 +401,7 @@ match(void) {
matchend = prefixend;
}
if(lsubstr) {
if(matchend) {
if(matches) {
matchend->right = lsubstr;
lsubstr->left = matchend;
}