Mercurial > hg > dmlib
diff 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 |
line wrap: on
line diff
--- a/src/dmgrowbuf.c Tue Jun 05 18:26:30 2018 +0300 +++ b/src/dmgrowbuf.c Tue Jun 05 18:27:16 2018 +0300 @@ -43,6 +43,8 @@ buf->size = initial; buf->mingrow = mingrow; buf->allocated = FALSE; + buf->backwards = FALSE; + buf->is_const = FALSE; // Allocate the data if ((buf->data = dmMalloc0(initial)) == NULL)