changeset 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
files src/dmgrowbuf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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)