summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Endsley <mendsley@gmail.com>2012-05-13 17:38:38 -0700
committerMatthew Endsley <mendsley@gmail.com>2012-05-14 01:04:25 -0700
commit449e6573d055b282cee46ddce59a345e55f938b7 (patch)
treeb05d51dfae59d370b8c5160b17c44471f5732f21
parente4333f2bdb6ea5ca23a8e8b6c569348f9ef0e7ed (diff)
downloadbsdiff-449e6573d055b282cee46ddce59a345e55f938b7.tar.gz
cleaning up warnings
-rw-r--r--bspatch.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bspatch.c b/bspatch.c
index ddc24b4..6a96b8e 100644
--- a/bspatch.c
+++ b/bspatch.c
@@ -188,9 +188,13 @@ int main(int argc,char * argv[])
uint8_t *old;
FILE *cpf, *dpf, *epf;
struct bspatch_request req;
- struct bspatch_bz2_buffer cbz2 = {0};
- struct bspatch_bz2_buffer dbz2 = {0};
- struct bspatch_bz2_buffer ebz2 = {0};
+ struct bspatch_bz2_buffer cbz2;
+ struct bspatch_bz2_buffer dbz2;
+ struct bspatch_bz2_buffer ebz2;
+
+ memset(&cbz2, 0, sizeof(cbz2));
+ memset(&dbz2, 0, sizeof(dbz2));
+ memset(&ebz2, 0, sizeof(ebz2));
if(argc!=4) errx(1,"usage: %s oldfile newfile patchfile\n",argv[0]);