Skip to content

Commit

Permalink
next_vol.cc: removed unneeded memsets
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Nov 5, 2019
1 parent a312b81 commit ec0258c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/dird/next_vol.cc
Expand Up @@ -3,7 +3,7 @@
Copyright (C) 2001-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2016 Planets Communications B.V.
Copyright (C) 2013-2018 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 @@ -452,9 +452,6 @@ bool GetScratchVolume(JobControlRecord* jcr,
* GetPoolRecord will first try ScratchPoolId,
* and then try the pool named Scratch
*/
memset(&smr, 0, sizeof(smr));
memset(&spr, 0, sizeof(spr));

bstrncpy(spr.Name, "Scratch", sizeof(spr.Name));
spr.PoolId = mr->ScratchPoolId;
if (jcr->db->GetPoolRecord(jcr, &spr)) {
Expand Down

0 comments on commit ec0258c

Please sign in to comment.