From 4aa50d28b9ab6dddb5cfeb573ee26ba87e4dff11 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 8 Mar 2004 16:37:08 +0000 Subject: [PATCH] String the consumers into the list of the provider they are attached to. Noticed by: jhb --- lib/libgeom/geom_xml2tree.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c index 6c8d7383740..75959c3aca6 100644 --- a/lib/libgeom/geom_xml2tree.c +++ b/lib/libgeom/geom_xml2tree.c @@ -341,9 +341,13 @@ geom_xml2tree(struct gmesh *gmp, char *p) } LIST_FOREACH(co, &ge->consumer, consumer) { co->geom = geom_lookupid(gmp, co->geom)->ptr; - if (co->provider != NULL) + if (co->provider != NULL) { co->provider = geom_lookupid(gmp, co->provider)->ptr; + LIST_INSERT_HEAD( + &co->provider->consumers, + co, consumers); + } } } }