made sure that when Translator add-on symbols are missing from the add-on they default to a NULL value
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@747 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1ee8035dab
commit
11e946307a
@ -1344,6 +1344,15 @@ BTranslatorRoster::LoadTranslator(const char *path)
|
||||
} else {
|
||||
// If the translator add-on is in the R4.0 / R4.5 format
|
||||
translator_data trandata;
|
||||
trandata.translatorName = NULL;
|
||||
trandata.translatorInfo = NULL;
|
||||
trandata.translatorVersion = 0;
|
||||
trandata.inputFormats = NULL;
|
||||
trandata.outputFormats = NULL;
|
||||
trandata.Identify = NULL;
|
||||
trandata.Translate = NULL;
|
||||
trandata.MakeConfig = NULL;
|
||||
trandata.GetConfigMessage = NULL;
|
||||
|
||||
// find all the symbols
|
||||
err = get_image_symbol(image, "translatorName", B_SYMBOL_TYPE_DATA,
|
||||
|
Loading…
Reference in New Issue
Block a user