mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
return null when unknown dict flags found
This commit is contained in:
parent
d91c7591e9
commit
6367412206
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "palmdict.h"
|
||||
#include "dictlist.h"
|
||||
#include "dictui.h"
|
||||
#include "palmmain.h"
|
||||
|
||||
typedef struct DictStart {
|
||||
unsigned long indexStart;
|
||||
|
@ -143,9 +144,9 @@ palm_dictionary_make( MPFORMAL XP_UCHAR* dictName, PalmDictList* dl )
|
|||
} else if ( headerRecP->flags == 0x0003 ) {
|
||||
nodeSize = 4;
|
||||
} else {
|
||||
nodeSize = 0; /* shut up, compiler */
|
||||
XP_WARNF( "got flags of %d", headerRecP->flags );
|
||||
XP_ASSERT(0);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue