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:
matzon 2002-08-13 15:57:39 +00:00
parent 77ff9d6038
commit 1ee8035dab

View File

@ -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++);