comparison src/dmgrowbuf.c @ 1702:94329f678841

Explicitly initialize some DMGrowBuf fields for clarity, though they are already cleared previously by memset().
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2018 18:27:16 +0300
parents 31a1f710e342
children fcc568e03bed
comparison
equal deleted inserted replaced
1701:31a1f710e342 1702:94329f678841
41 buf->len = 0; 41 buf->len = 0;
42 buf->offs = 0; 42 buf->offs = 0;
43 buf->size = initial; 43 buf->size = initial;
44 buf->mingrow = mingrow; 44 buf->mingrow = mingrow;
45 buf->allocated = FALSE; 45 buf->allocated = FALSE;
46 buf->backwards = FALSE;
47 buf->is_const = FALSE;
46 48
47 // Allocate the data 49 // Allocate the data
48 if ((buf->data = dmMalloc0(initial)) == NULL) 50 if ((buf->data = dmMalloc0(initial)) == NULL)
49 return DMERR_MALLOC; 51 return DMERR_MALLOC;
50 52