Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 51dde1f

Browse files
committed
[CID 16283] bspatchmain(): Ensure local variables are initialised
Coverity-IDE: 16283
1 parent cf4fdb9 commit 51dde1f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/src/bsdiff_apply.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ static bool bspatchmain(MCBsDiffInputStream *p_patch_stream, MCBsDiffInputStream
6262

6363
// Read in the sizes of all the data arrays
6464

65-
int32_t t_control_byte_size, t_diff_size, t_extra_size, t_new_size;
65+
int32_t t_control_byte_size, t_diff_size, t_extra_size;
66+
int32_t t_new_size = 0;
6667
if (t_success)
6768
t_success =
6869
p_patch_stream -> ReadInt32(t_control_byte_size) &&

0 commit comments

Comments
 (0)