Permalink
Browse files

Throwing an error if there's a regex_t based affix instead of silentl…

…y skipping them, which might lead to segfaults and so on (the extension can't handle them properly yet).
  • Loading branch information...
1 parent ecab830 commit ae2f9d5936d9b5910c33d4ae7e0eb67b391da785 @tvondra committed Jan 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/shared_ispell.c
View
@@ -619,7 +619,7 @@ AFFIX * copyAffix(AFFIX * affix) {
/*FIXME Need to copy the regex_t properly. But would a plain copy be
* safe tu use by multiple processes at the same time? */
- elog(WARNING, "skipping regex_t");
+ elog(ERROR, "This extension can't handle regex_t affixes yet.");
}
@@ -641,7 +641,7 @@ int sizeAffix(AFFIX * affix) {
/*FIXME Need to copy the regex_t properly. But would a plain copy be
* safe tu use by multiple processes at the same time? */
- elog(WARNING, "skipping regex_t");
+ elog(ERROR, "This extension can't handle regex_t affixes yet.");
}

0 comments on commit ae2f9d5

Please sign in to comment.