]> mj.ucw.cz Git - libucw.git/commitdiff
When moving attributes, don't break the chain.
authorMartin Mares <mj@ucw.cz>
Thu, 27 Jun 2002 19:42:48 +0000 (19:42 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 27 Jun 2002 19:42:48 +0000 (19:42 +0000)
lib/object.c

index 0a0686540ab36aa3a6cdebfeae6c088e83cf3bf7..1c9cb23fc5a629b6f2f054724b2583ca2a352e0c 100644 (file)
@@ -235,6 +235,8 @@ obj_prepend_attr(struct odes *o, uns x, byte *v)
       if (a->attr == x)
        {
          b->same = a;
+         b->next = a->next;
+         a->next = NULL;
          *z = b;
          b->last_same = a->last_same;
          return b;