From 9dfd32fda3cc9f647cbd2beaa78153b04a03f720 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Thu, 8 Jan 2026 21:55:10 +0100 Subject: [PATCH] env: ignore only invalid environment variables Returning NULL drops the start of the currently existing linked list, effectively removing all previously added environment variables. Only ignore the invalid one, but keep the linked list available. Signed-off-by: Tobias Stoeckmann --- lib/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env.c b/lib/env.c index e5e66337f..e459959e0 100644 --- a/lib/env.c +++ b/lib/env.c @@ -97,7 +97,7 @@ static struct ul_env_list *env_list_add_from_string(struct ul_env_list *ls, val = strchr(str, '='); if (!val) - return NULL; + return ls; namesz = val - str; val++; -- 2.47.3