/* Look for possible flags for a newly added variable This is called specifically when the variable did not exist in the hash previously, so the blanket update did not find this variable.  */
void env_flags_init(struct env_entry *var_entry)
/* Look for possible flags for a newly added variable This is called specifically when the variable did not exist in the hash previously, so the blanket update did not find this variable.  */
void env_flags_init(struct env_entry *var_entry)
{
	const char *var_name = var_entry->key;
	char flags[ENV_FLAGS_ATTR_MAX_LEN + 1] = "";
	int ret = 1;
	if (first_call) {
		flags_list = env_get(ENV_FLAGS_VAR);
		first_call = 0;
	}
	ret = env_flags_lookup(flags_list, var_name, flags);
	if (!ret && strlen(flags))
		var_entry->flags = env_parse_flags_to_bin(flags);
}