]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Fix script environment variable setting for empty lists
authorBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 20:13:35 +0000 (20:13 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 15:34:45 +0000 (15:34 +0000)
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 <ben@decadent.org.uk>

No differences found