diff options
Diffstat (limited to 'onlineupdate/source/mbsdiff/bsdiff.cxx')
-rw-r--r-- | onlineupdate/source/mbsdiff/bsdiff.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/onlineupdate/source/mbsdiff/bsdiff.cxx b/onlineupdate/source/mbsdiff/bsdiff.cxx index d455bf98046d..72bbcde1899f 100644 --- a/onlineupdate/source/mbsdiff/bsdiff.cxx +++ b/onlineupdate/source/mbsdiff/bsdiff.cxx @@ -23,7 +23,7 @@ #include <string.h> #include <fcntl.h> #include <stdarg.h> -#ifdef XP_WIN +#ifdef _WIN32 #include <io.h> #include <winsock2.h> #else @@ -213,10 +213,10 @@ int main(int argc,char *argv[]) { int fd; unsigned char *old = nullptr,*newbuf = nullptr; - int32_t oldsize = 0,newsize = 0; + int32_t oldsize = 0, newsize = 0; int32_t *I = nullptr,*V = nullptr; - int32_t scan,pos,len; + int32_t scan,pos = 0,len; int32_t lastscan,lastpos,lastoffset; int32_t oldscore,scsc; @@ -225,7 +225,7 @@ int main(int argc,char *argv[]) int32_t i; int32_t dblen,eblen; - unsigned char *db,*eb; + unsigned char *db,*eb = nullptr; unsigned int scrc; |