8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Postfix for AV due to CORE-3649

This commit is contained in:
alexpeshkoff 2012-03-19 09:10:43 +00:00
parent c3d90b3a9b
commit cf0128b304

View File

@ -1107,7 +1107,7 @@ int gbak(Firebird::UtilSvc* uSvc)
{
// All calls to exit_local(), normal and error exits, wind up here
tdgbl->burp_throw = false;
if (tdgbl->action->act_action == ACT_backup_fini)
if (tdgbl->action && tdgbl->action->act_action == ACT_backup_fini)
{
tdgbl->exit_code = 0;
}
@ -1187,7 +1187,7 @@ void BURP_abort()
**************************************/
BurpGlobals* tdgbl = BurpGlobals::getSpecific();
BURP_print(true, tdgbl->action->act_action == ACT_backup_fini ? 351 : 83);
BURP_print(true, tdgbl->action && tdgbl->action->act_action == ACT_backup_fini ? 351 : 83);
// msg 351 Error closing database, but backup file is OK
// msg 83 Exiting before completion due to errors