Fixed division by zero
[SXSI/TextCollection.git] / CSA.cpp
diff --git a/CSA.cpp b/CSA.cpp
index 5dd14b7..0e1fcc9 100644 (file)
--- a/CSA.cpp
+++ b/CSA.cpp
@@ -208,6 +208,7 @@ void CSA::MakeStatic()
     if (texts.size() == 0) // Empty collection
     {
          ++n;
+         ++numberOfTexts;
          texts.append(1, '\0');
     }