From cf0128b304f75810e58aeaa8c2bc80a8e4b65bed Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Mon, 19 Mar 2012 09:10:43 +0000 Subject: [PATCH] Postfix for AV due to CORE-3649 --- src/burp/burp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/burp/burp.cpp b/src/burp/burp.cpp index 32e2872959..62c4bf4d1d 100644 --- a/src/burp/burp.cpp +++ b/src/burp/burp.cpp @@ -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