From 38c0f4ea45de311a75b0506c5bd0c1656086861e Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Fri, 6 Sep 2019 16:09:35 +1100 Subject: [PATCH] use new format of sastr_clean_element --- src/66/66-boot.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/66/66-boot.c b/src/66/66-boot.c index 1f73d7ac..4eec4dbd 100644 --- a/src/66/66-boot.c +++ b/src/66/66-boot.c @@ -119,8 +119,14 @@ static void parse_conf(void) { if (!stralloc_copy(&val,&src)) sulogin("copy stralloc of file: ",confile) ; if (!environ_get_val_of_key(&val,*p)) continue ; - sastr_clean_element(&val) ; - if (!val.len) strerr_warnwu3x("get value of: ",*p," -- keeps the default") ; + /** value may be empty, in this case we use the default one */ + if (!sastr_clean_element(&val)) + { + strerr_warnwu3x("get value of: ",*p," -- keeps the default") ; + continue ; + } + if (!sastr_rebuild_in_oneline(&val)) sulogin("rebuild line of value: ",val.s) ; + if (!stralloc_0(&val)) sulogin("append stralloc of value: ",val.s) ; switch (j) { -- GitLab