aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/evaluate.c
diff options
context:
space:
mode:
Diffstat (limited to 'evaluate.c')
-rw-r--r--evaluate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/evaluate.c b/evaluate.c
index 95aef4dc..cf40eed4 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -3293,9 +3293,11 @@ static struct symbol *evaluate_generic_selection(struct expression *expr)
return NULL;
for (map = expr->map; map; map = map->next) {
- if (!evaluate_symbol(map->type))
+ struct symbol *stype = map->type;
+
+ if (!evaluate_symbol(stype))
continue;
- if (!type_selection(ctrl, map->type))
+ if (!type_selection(ctrl, stype))
continue;
res = map->expr;