fixed: check for null when checking in/outputFormats
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@746 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
77ff9d6038
commit
1ee8035dab
@ -185,7 +185,7 @@ const translation_format *BR4xTranslator::InputFormats(int32 *out_count) const
|
||||
{
|
||||
if (!out_count)
|
||||
return NULL;
|
||||
if (fpData) {
|
||||
if (fpData && fpData->inputFormats != NULL) {
|
||||
int32 i;
|
||||
for (i = 0; fpData->inputFormats[i].type; i++);
|
||||
|
||||
@ -217,7 +217,7 @@ const translation_format *BR4xTranslator::OutputFormats(int32 *out_count) const
|
||||
{
|
||||
if (!out_count)
|
||||
return NULL;
|
||||
if (fpData) {
|
||||
if (fpData && fpData->outputFormats != NULL) {
|
||||
int32 i;
|
||||
for (i = 0; fpData->outputFormats[i].type; i++);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user