Don't behave badly in presence of empty dict: word count should be 0

and sanity test should pass.
This commit is contained in:
Andy2 2011-11-21 18:07:08 -08:00
parent d856b9a8ce
commit f32f7a8b19

View file

@ -370,6 +370,7 @@ initFromDictFile( LinuxDictionaryCtxt* dctx, const char* fileName )
} else {
dctx->super.base = NULL;
dctx->super.topEdge = NULL;
numEdges = 0;
}
dctx->super.name = copyString( dctx->super.mpool, fileName );