summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-05 14:05:28 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 02:49:59 +0200
commit70da4f1d26cc7af2cd248b9b7e44420097c686b5 (patch)
tree5203f395ef632063da1ff328fd502a9567f3d11f
parent9a49cce9ffcf1f8756b69974658380744e58dfa5 (diff)
Wsometimes-uninitialized
Change-Id: Ia160685694a386358506f94c4cc1510e5e2a6f62
-rw-r--r--onlineupdate/source/mbsdiff/bsdiff.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/onlineupdate/source/mbsdiff/bsdiff.cxx b/onlineupdate/source/mbsdiff/bsdiff.cxx
index ef80bd99770f..d455bf98046d 100644
--- a/onlineupdate/source/mbsdiff/bsdiff.cxx
+++ b/onlineupdate/source/mbsdiff/bsdiff.cxx
@@ -212,9 +212,9 @@ search(int32_t *I,unsigned char *old,int32_t oldsize,
int main(int argc,char *argv[])
{
int fd;
- unsigned char *old,*newbuf;
- int32_t oldsize,newsize;
- int32_t *I,*V;
+ unsigned char *old = nullptr,*newbuf = nullptr;
+ int32_t oldsize = 0,newsize = 0;
+ int32_t *I = nullptr,*V = nullptr;
int32_t scan,pos,len;
int32_t lastscan,lastpos,lastoffset;