Skip to content
Snippets Groups Projects
Commit 370cf62d authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

accept empty value

parent cb58df8e
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,12 @@ void parse_env_var(stralloc *result, char const *line)
memcpy(mkey,line,spos - 1) ;
mkey[spos - 1] = 0 ;
if (!line[spos]) {
stralloc_free(&subs) ;
return ;
}
if (!auto_stra(&subs, line + spos))
log_die_nomem("stralloc") ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment