Empty environment variables are a valid case and are needed to override (or remove) existing variables such as HOSTNAME. Reported-by: Hartmut Birr <e9hack@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
@@ -241,9 +241,6 @@ static int hotplug_call(struct ubus_context *ctx, struct ubus_object *obj,
continue;
*tmp = '=';
- if (!strlen(++tmp))
- continue;
-
if (!strcmp(enve, "ASYNC=0"))
async = false;