Skip to content

Commit

Permalink
ndmp_ndmmedia_db_helpers.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 b588343 commit 729ffe4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/dird/ndmp_ndmmedia_db_helpers.cc
Expand Up @@ -2,7 +2,7 @@
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2011-2015 Planets Communications B.V.
Copyright (C) 2013-2017 Bareos GmbH & Co. KG
Copyright (C) 2013-2019 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -129,9 +129,6 @@ bool StoreNdmmediaInfoInDatabase(ndmmedia* media, JobControlRecord* jcr)
JobMediaDbRecord jm;
MediaDbRecord mr;

memset(&jm, 0, sizeof(jm));
memset(&mr, 0, sizeof(mr));

/*
* get media record by name
*/
Expand Down Expand Up @@ -179,9 +176,6 @@ bool GetNdmmediaInfoFromDatabase(ndm_media_table* media_tab,
JobMediaDbRecord jm;
MediaDbRecord mr;

memset(&jm, 0, sizeof(jm));
memset(&mr, 0, sizeof(mr));

int VolCount;
VolumeParameters* VolParams = NULL;
bool retval = false;
Expand Down

0 comments on commit 729ffe4

Please sign in to comment.