Skip to content

Commit

Permalink
backup.cc: fix class-memaccess warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Nov 5, 2019
1 parent 4a0e7d0 commit 4e56a90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/dird/backup.cc
Expand Up @@ -137,7 +137,8 @@ static inline bool ValidateStorage(JobControlRecord* jcr)
default:
Jmsg(jcr, M_FATAL, 0,
_("Storage %s has illegal backup protocol %s for Native backup\n"),
store->resource_name_, AuthenticationProtocolTypeToString(store->Protocol));
store->resource_name_,
AuthenticationProtocolTypeToString(store->Protocol));
return false;
}
}
Expand Down Expand Up @@ -783,7 +784,6 @@ void NativeBackupCleanup(JobControlRecord* jcr, int TermCode)
ClientDbRecord cr;

Dmsg2(100, "Enter backup_cleanup %d %c\n", TermCode, TermCode);
memset(&cr, 0, sizeof(cr));

if (jcr->is_JobStatus(JS_Terminated) &&
(jcr->JobErrors || jcr->SDErrors || jcr->JobWarnings)) {
Expand Down Expand Up @@ -941,7 +941,6 @@ void GenerateBackupSummary(JobControlRecord *jcr, ClientDbRecord *cr, int msg_ty
secure_erase_status,
compress_algo_list;

memset(&mr, 0, sizeof(mr));
bstrftimes(schedt, sizeof(schedt), jcr->jr.SchedTime);
bstrftimes(sdt, sizeof(sdt), jcr->jr.StartTime);
bstrftimes(edt, sizeof(edt), jcr->jr.EndTime);
Expand Down

0 comments on commit 4e56a90

Please sign in to comment.