From 895a35b9084d499c97d34d0c70c502969364e928 Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Thu, 11 Apr 2019 14:47:25 +1100
Subject: [PATCH] be proper with HEAP memory

---
 src/extra-tools/66-envfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/extra-tools/66-envfile.c b/src/extra-tools/66-envfile.c
index dc3d736d..bb551ed9 100644
--- a/src/extra-tools/66-envfile.c
+++ b/src/extra-tools/66-envfile.c
@@ -220,7 +220,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
 	char const *newenv[n] ;
 	if (!env_merge (newenv, n ,envp,env_len(envp),modifs.s, modifs.len)) strerr_diefu1sys(111,"build environment") ;
 	
-	modifs = stralloc_zero ;
+	modifs.len = 0 ;
 	
 	for (i = 0 ; i < genalloc_len(diuint32,&gaenv) ; i++)
 	{
-- 
GitLab