Applied patch by 2points to fix an issue with thesaurus.

Originally committed to SVN as r1625.
This commit is contained in:
Rodrigo Braz Monteiro 2007-10-26 19:30:59 +00:00
parent 8d797046a7
commit c249e1c4c9
1 changed files with 2 additions and 0 deletions

View File

@ -371,6 +371,7 @@ int MyThes::binsearch(char * sw, char* list[], int nlst)
lp = 0;
up = nlst-1;
indx = -1;
if (nlst == 0) return -1;
if (strcmp(sw,list[lp]) < 0) return -1;
if (strcmp(sw,list[up]) > 0) return -1;
while (indx < 0 ) {
@ -394,3 +395,4 @@ char * MyThes::get_th_encoding()
return NULL;
}