From: Ben Hutchings Date: Fri, 22 Jan 2016 20:13:35 +0000 (+0000) Subject: Fix script environment variable setting for empty lists X-Git-Tag: debian/1.1+git20160131-1~7^2~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=commitdiff_plain;h=6326ab374ede4fff1e8019a50d4b9854b8db7625;hp=6326ab374ede4fff1e8019a50d4b9854b8db7625 Fix script environment variable setting for empty lists When setting an environment variable as a space-separated list, and the list is empty, we must not delete the '=' before the value. In practice putenv() is likely to discard the invalid string, leaving the variable unset, but this is not guaranteed. Signed-off-by: Ben Hutchings ---