Skip to content

Commit 5da92bd

Browse files
committed
WIP
1 parent 8ba28cb commit 5da92bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/heap.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ static bool copy_vars(query *q, cell *c, bool copy_attrs, const cell *from, pl_c
266266
}
267267
}
268268

269-
if (cnt)
270-
create_vars(q, cnt);
269+
if (cnt) {
270+
if (create_vars(q, cnt) < 0)
271+
return false;
272+
}
271273

272274
return true;
273275
}
@@ -305,7 +307,6 @@ static cell *copy_term_to_tmp_with_replacement(query *q, cell *p1, pl_ctx p1_ctx
305307
{
306308
cell *c = deref(q, p1, p1_ctx);
307309
pl_ctx c_ctx = q->latest_ctx;
308-
309310
cell *tmp = clone_term_to_tmp(q, c, c_ctx);
310311

311312
if (!tmp)

0 commit comments

Comments
 (0)