From: Alain Spineux Date: Mon, 11 Dec 2023 10:07:51 +0000 (+0100) Subject: tweak bsr.c to silent cppcheck (initialize VolAddrStart & VolAddrEnd) X-Git-Tag: Beta-15.0.1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91fec13b26b689add16296fbf88eabf18093602f;p=thirdparty%2Fbacula.git tweak bsr.c to silent cppcheck (initialize VolAddrStart & VolAddrEnd) --- diff --git a/bacula/src/dird/bsr.c b/bacula/src/dird/bsr.c index e139ab643..243e9b271 100644 --- a/bacula/src/dird/bsr.c +++ b/bacula/src/dird/bsr.c @@ -916,7 +916,7 @@ bool split_bsr_loop(JCR *jcr, bootstrap_info &info) uint32_t VolSessionId, VolSessionTime; uint32_t prevVolSessionId = 0, prevVolSessionTime = 0; - uint64_t VolAddrStart, VolAddrEnd; + uint64_t VolAddrStart = 0, VolAddrEnd = 0; uint64_t prevVolAddrStart = 0, prevVolAddrEnd = 0; boffset_t start_section_offset = 0; // the offset of the beginning of the section