From: Martin Mares Date: Thu, 27 Jun 2002 19:42:48 +0000 (+0000) Subject: When moving attributes, don't break the chain. X-Git-Tag: holmes-import~1390 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=df60793e9f71c2b5f2e1cc0db3011435a3638b77;p=libucw.git When moving attributes, don't break the chain. --- diff --git a/lib/object.c b/lib/object.c index 0a068654..1c9cb23f 100644 --- a/lib/object.c +++ b/lib/object.c @@ -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;