Apache OpenOffice (AOO) Bugzilla – Attachment #2019: Patch adds error handling if file open fails. for issue #5957
FILE *pFp;
pFp = fopen (cBName,"w+");
if (!pFp)
fprintf( stderr, "Error opening DataBase File\n" );
{ fprintf( stderr, "\nError opening DataBase File:%s\n",cBName );
DumpError( 600 );
}
LibExport *pData;
for ( unsigned long i=0; i < nBaseLines+10; i++ )
{