From: Tobias Stoeckmann Date: Thu, 8 Jan 2026 20:55:10 +0000 (+0100) Subject: env: ignore only invalid environment variables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dfd32fda3cc9f647cbd2beaa78153b04a03f720;p=thirdparty%2Futil-linux.git 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 --- 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++;