mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0023636: Problems initialising errorStream
OSD_Error.cxx is protected for the case if errorStream is NULL
This commit is contained in:
parent
a8fcd8d07e
commit
d9b81fa5f5
@ -634,6 +634,9 @@ OSD_Error :: OSD_Error () {
|
|||||||
|
|
||||||
void OSD_Error :: Perror () {
|
void OSD_Error :: Perror () {
|
||||||
|
|
||||||
|
if (errorStream == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
Standard_Character buff[ 32 ];
|
Standard_Character buff[ 32 ];
|
||||||
Standard_CString ptr;
|
Standard_CString ptr;
|
||||||
|
|
||||||
@ -807,9 +810,12 @@ Standard_Boolean OSD_Error :: Failed () const {
|
|||||||
void OSD_Error :: Reset () {
|
void OSD_Error :: Reset () {
|
||||||
|
|
||||||
myErrno = ERROR_SUCCESS;
|
myErrno = ERROR_SUCCESS;
|
||||||
( *errorStream ).clear ();
|
if (errorStream != NULL)
|
||||||
( *errorStream ).seekp ( 0 );
|
{
|
||||||
( *errorStream ).clear ();
|
( *errorStream ).clear ();
|
||||||
|
( *errorStream ).seekp ( 0 );
|
||||||
|
( *errorStream ).clear ();
|
||||||
|
}
|
||||||
|
|
||||||
} // end OSD_Error :: Reset
|
} // end OSD_Error :: Reset
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user