Make sure we also reserve space for destination and pronunciation

This commit is contained in:
Patrick Niklaus 2016-06-08 10:58:11 +02:00
parent 312e86eb58
commit 1c140a112a
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B
2 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,9 @@ ExtractionContainers::ExtractionContainers()
{
// Check if stxxl can be instantiated
stxxl::vector<unsigned> dummy_vector;
// Insert the empty string, it has no data and is zero length
// Insert three empty strings for name, destination and pronunciation
name_lengths.push_back(0);
name_lengths.push_back(0);
name_lengths.push_back(0);
}

View File

@ -27,6 +27,7 @@ namespace extractor
ExtractorCallbacks::ExtractorCallbacks(ExtractionContainers &extraction_containers)
: external_memory(extraction_containers)
{
// we reserved 0, 1, 2 for the empty case
string_map[MapKey("", "")] = 0;
}