Skip to content

Commit

Permalink
Work on list_attributed/1, re issue #443
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Jan 10, 2024
1 parent 25c415d commit 82aa575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bif_atts.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ bool bif_sys_list_attributed_1(query *q)
cell *c = &e->c;
pl_idx c_ctx = e->c.var_ctx;

if (!is_empty(c) || !c->attrs || is_nil(c->attrs))
if (!is_empty(c) || !c->attrs || is_nil(c->attrs) || is_cyclic_term(q, c->attrs, c->attrs_ctx))
continue;

cell tmp;
Expand Down

0 comments on commit 82aa575

Please sign in to comment.