comparison tests/testdmzlib.c @ 1170:ef5a9c51569c

Use dmMemset().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Mar 2015 07:49:33 +0200
parents d0898867ec4c
children
comparison
equal deleted inserted replaced
1169:54e6516093ec 1170:ef5a9c51569c
177 z_stream zstr; 177 z_stream zstr;
178 178
179 dmMsg(0, "Operating mode: %s\n", 179 dmMsg(0, "Operating mode: %s\n",
180 compress ? "compress" : "decompress"); 180 compress ? "compress" : "decompress");
181 181
182 memset(&zstr, 0, sizeof(zstr)); 182 dmMemset(&zstr, 0, sizeof(zstr));
183 183
184 if ((inBuffer = malloc(SET_TMPBUF_SIZE)) == NULL || 184 if ((inBuffer = malloc(SET_TMPBUF_SIZE)) == NULL ||
185 (outBuffer = malloc(SET_TMPBUF_SIZE)) == NULL) 185 (outBuffer = malloc(SET_TMPBUF_SIZE)) == NULL)
186 { 186 {
187 ret = dmError(DMERR_MALLOC, "Malloc failed.\n"); 187 ret = dmError(DMERR_MALLOC, "Malloc failed.\n");