Skip to content

Commit

Permalink
Add support for infostore in EnvIsSet Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
NsCDE authored and ThomasAdam committed Oct 2, 2020
1 parent b7da605 commit f6769b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fvwm/conditional.c
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,12 @@ void CMD_Test(F_CMD_ARGS)
flags_ptr = GetNextSimpleOption(flags_ptr, &var_name);
if (var_name)
{
const char *value = getenv(var_name);
const char *value;

if (memcmp(var_name,"infostore.",10) == 0)
value = get_metainfo_value(var_name+10);
else
value = getenv(var_name);

match = (value != NULL) ? 1 : 0;
}
Expand Down

0 comments on commit f6769b6

Please sign in to comment.