14 lines
608 B
Diff
14 lines
608 B
Diff
|
diff -ru htdig-3.2.0b6/httools/htstat.cc htdig-3.2.0b6-fix/httools/htstat.cc
|
||
|
--- htdig-3.2.0b6/httools/htstat.cc 2004-05-28 15:15:25.000000000 +0200
|
||
|
+++ htdig-3.2.0b6-fix/httools/htstat.cc 2009-12-01 21:21:06.000000000 +0100
|
||
|
@@ -158,7 +158,8 @@
|
||
|
if(words.Open(config->Find("word_db"), O_RDONLY) == OK)
|
||
|
{
|
||
|
cout << "htstat: Total words: " << words.WordRefs()->Count() << endl;
|
||
|
- cout << "htstat: Total unique words: " << words.Words()->Count() << endl;
|
||
|
+ if (words.WordRefs()->Count() != 0)
|
||
|
+ cout << "htstat: Total unique words: " << words.Words()->Count() << endl;
|
||
|
words.Close();
|
||
|
}
|
||
|
|