projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
key-data.c (key_struct{set,steal}): Assert no other references.
[u/mdw/catacomb]
/
key-data.c
diff --git
a/key-data.c
b/key-data.c
index
43ad901
..
0e79b32
100644
(file)
--- a/
key-data.c
+++ b/
key-data.c
@@
-350,6
+350,7
@@
static void structset(key_data *k, int stealp,
unsigned f;
assert(((void)"Key is not structured", k->e == KENC_STRUCT));
+ assert(((void)"Key has multiple references", k->ref == 1));
if (!kd) {
ks = sym_find(&k->u.s, tag, -1, 0, 0);
if (ks) sym_remove(&k->u.s, ks);