]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
tweak bsr.c to silent cppcheck (initialize VolAddrStart & VolAddrEnd)
authorAlain Spineux <alain@baculasystems.com>
Mon, 11 Dec 2023 10:07:51 +0000 (11:07 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:03 +0000 (10:36 +0100)
bacula/src/dird/bsr.c

index e139ab643bf2df1f03cc60040c9a977b8fe15aed..243e9b271645caf7a372a1b7c44f859b52e72851 100644 (file)
@@ -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