/* Call for each element in the list that defines flags for a variable  */
static int set_flags(const char *name, const char *value, void *priv)
/* Call for each element in the list that defines flags for a variable  */
static int set_flags(const char *name, const char *value, void *priv)
{
	struct env_entry e, *ep;
	e.key	= name;
	e.data	= NULL;
	e.callback = NULL;
	hsearch_r(e, ENV_FIND, &ep, &env_htab, 0);
	if (ep != NULL) {
		if (value == NULL || strlen(value) == 0)
			ep->flags = 0;
		else
			ep->flags = env_parse_flags_to_bin(value);
	}
	return 0;
}