From 3826af438151c1836426d01f8a53deeb6dcbe702 Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Sat, 27 Apr 2019 08:00:49 +1100
Subject: [PATCH] use stralloc instead of keynocheck

---
 src/extra-tools/66-envfile.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/extra-tools/66-envfile.c b/src/extra-tools/66-envfile.c
index 99186b78..910a4bb9 100644
--- a/src/extra-tools/66-envfile.c
+++ b/src/extra-tools/66-envfile.c
@@ -119,13 +119,13 @@ int new_env(char const *path,char const *file,stralloc *modifs)
 {
 	int nbline = 0, i = 0 ;
 	
-	keynocheck nocheck = KEYNOCHECK_ZERO ;
+	stralloc sa = STRALLOC_ZERO ;
 	genalloc gatmp = GENALLOC_ZERO ;//stralist
 	
-	if (!file_readputsa(&nocheck.val,path,file)) strerr_diefu4sys(111,"read file: ",path,"/",file) ;
-	if (!parse_env(&nocheck.val)) strerr_dief2x(111,"parse file: ", file) ;
+	if (!file_readputsa(&sa,path,file)) strerr_diefu4sys(111,"read file: ",path,"/",file) ;
+	if (!parse_env(&sa)) strerr_dief2x(111,"parse file: ", file) ;
 	
-	nbline = get_nbline_ga(nocheck.val.s,nocheck.val.len,&gatmp) ;
+	nbline = get_nbline_ga(sa.s,sa.len,&gatmp) ;
 	
 	for (i = 0;i < nbline;i++)
 		if (!add_env(gaistr(&gatmp,i),&gaenv,&senv)) strerr_diefu2x(111,"append genalloc with: ",gaistr(&gatmp,i)) ;
-- 
GitLab