libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit fbecf414ee84ffbf01619368ba104cfb8980d33c
parent 1efdd74fe9d12c8305c9877dd3ab38ad3f518462
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 29 Jan 2007 03:56:25 +0000

only add keywords from splitextractor if they are actually different from the original

Diffstat:
Msrc/plugins/splitextractor.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/splitextractor.c b/src/plugins/splitextractor.c @@ -72,7 +72,9 @@ static void splitKeywords(const char * keyword, (pos < len) ) pos++; dp[pos++] = '\0'; - if (pos - last > MINIMUM_KEYWORD_LENGTH) + if ( (pos - last > MINIMUM_KEYWORD_LENGTH) && + (0 != strcmp(keyword, + &dp[last])) ) addKeyword(list, &dp[last]); while ( (pos < len) &&