summaryrefslogtreecommitdiff
path: root/onlineupdate
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 03:43:34 +0200
commit8bd07b0c54c9e8aec4a72d8b4b954abd14403ca3 (patch)
tree4ecb8f49f982be9068c99f4dde358a195af50a73 /onlineupdate
parent2c714fda72902507b3645cff7c06db8d46fdf49d (diff)
Wsometimes-uninitialized
Change-Id: Ia160685694a386358506f94c4cc1510e5e2a6f62
Diffstat (limited to 'onlineupdate')
-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;