We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 199a122 commit 1f4fe05Copy full SHA for 1f4fe05
src/lib/unlang/compile.c
@@ -359,13 +359,15 @@ int unlang_fixup_update(map_t *map, void *ctx)
359
*
360
* RHS may be NULL for T_OP_CMP_FALSE.
361
*/
362
- switch (map->rhs->type) {
363
- case TMPL_TYPE_ATTR:
364
- if (map->rhs && !tmpl_is_list(map->rhs)) tmpl_attr_rewrite_leaf_num(map->rhs, NUM_ALL);
365
- break;
366
-
367
- default:
368
+ if (map->rhs) {
+ switch (map->rhs->type) {
+ case TMPL_TYPE_ATTR:
+ if (!tmpl_is_list(map->rhs)) tmpl_attr_rewrite_leaf_num(map->rhs, NUM_ALL);
+ break;
+
+ default:
369
370
+ }
371
}
372
373
0 commit comments