Skip to content

Commit 190b689

Browse files
committed
initialize and print out constant flag
1 parent d61058c commit 190b689

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/lib/unlang/xlat_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ xlat_exp_head_t *_xlat_exp_head_alloc(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx)
3939
MEM(head = talloc_zero(ctx, xlat_exp_head_t));
4040

4141
fr_dlist_init(&head->dlist, xlat_exp_t, entry);
42-
head->flags.pure = head->flags.can_purify = true;
42+
head->flags.constant = head->flags.pure = head->flags.can_purify = true;
4343
#ifndef NDEBUG
4444
head->file = file;
4545
head->line = line;

src/lib/unlang/xlat_tokenize.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,10 +1006,11 @@ static void _xlat_debug_head(xlat_exp_head_t const *head, int depth)
10061006

10071007
fr_assert(head != NULL);
10081008

1009-
INFO_INDENT("head flags = %s %s %s",
1009+
INFO_INDENT("head flags = %s %s %s %s",
10101010
head->flags.needs_resolving ? "need_resolving," : "",
10111011
head->flags.pure ? "pure" : "",
1012-
head->flags.can_purify ? "can_purify" : "");
1012+
head->flags.can_purify ? "can_purify" : "",
1013+
head->flags.constant ? "constant" : "");
10131014

10141015
depth++;
10151016

0 commit comments

Comments
 (0)