Mercurial > hg > dmlib
comparison tests/dzlibtest.c @ 2414:69a5af2eb1ea
Remove useless dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 23:27:01 +0200 |
parents | b7cd5dd0b82e |
children | 9807ae37ad69 |
comparison
equal
deleted
inserted
replaced
2413:902cc22018a1 | 2414:69a5af2eb1ea |
---|---|
178 z_stream zstr; | 178 z_stream zstr; |
179 | 179 |
180 dmMsg(0, "Operating mode: %s\n", | 180 dmMsg(0, "Operating mode: %s\n", |
181 compress ? "compress" : "decompress"); | 181 compress ? "compress" : "decompress"); |
182 | 182 |
183 dmMemset(&zstr, 0, sizeof(zstr)); | 183 memset(&zstr, 0, sizeof(zstr)); |
184 | 184 |
185 if ((inBuffer = malloc(SET_TMPBUF_SIZE)) == NULL || | 185 if ((inBuffer = malloc(SET_TMPBUF_SIZE)) == NULL || |
186 (outBuffer = malloc(SET_TMPBUF_SIZE)) == NULL) | 186 (outBuffer = malloc(SET_TMPBUF_SIZE)) == NULL) |
187 { | 187 { |
188 ret = dmError(DMERR_MALLOC, "Malloc failed.\n"); | 188 ret = dmError(DMERR_MALLOC, "Malloc failed.\n"); |