mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
test the variable that may have been changed, not the one that holds
the pre-change value.
This commit is contained in:
parent
63c0c5cf09
commit
aab9fd9df2
1 changed files with 2 additions and 2 deletions
|
@ -1343,7 +1343,7 @@ makeIndex( DictIterData* data )
|
|||
idata->count = count;
|
||||
|
||||
dict_makeIndex( &data->iter, data->depth, idata );
|
||||
if ( 0 < count ) {
|
||||
if ( 0 < idata->count ) {
|
||||
idata->prefixes = XP_REALLOC( data->mpool, idata->prefixes,
|
||||
idata->count * data->depth *
|
||||
sizeof(*idata->prefixes) );
|
||||
|
@ -1352,7 +1352,7 @@ makeIndex( DictIterData* data )
|
|||
} else {
|
||||
freeIndices( data );
|
||||
}
|
||||
}
|
||||
} /* makeIndex */
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_eehouse_android_xw4_jni_XwJNI_dict_1iter_1setMinMax
|
||||
|
|
Loading…
Reference in a new issue