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

Postfix for AV due to CORE-3649

This commit is contained in:
alexpeshkoff 2012-03-19 09:09:21 +00:00
parent 014d071c1c
commit 0afd11b7ee

View File

@ -1232,7 +1232,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;
}
@ -1320,7 +1320,7 @@ void BURP_abort()
if (!tdgbl->uSvc->isService())
{
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
}