bareos: master d2cde678

Author Committer Branch Timestamp Parent
Andreas Rogge Andreas Rogge master 2022-01-31 15:13 master 59fd6feb Pending
Changeset dird: fix call on null object

if jcr->batch_started == false, then also jcr->db_batch == NULL.
Therefore we should not call jcr->db_batch->WriteBatchFileRecords(), as
it would call the method on the NULL object (which might be perfectly
safe in this specific case, but is undefined behaviour).
mod - core/src/dird/backup.cc Diff File