From da45501e15275e84b5b7a9089837e78e1f6a04a7 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Fri, 7 Dec 2007 21:50:08 +0000 Subject: [PATCH] Fiddling with writing without fiddling with reading of course won't work. :-/ --- tools/attr_store.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/attr_store.c b/tools/attr_store.c index b5a0a7c..884e08e 100644 --- a/tools/attr_store.c +++ b/tools/attr_store.c @@ -1252,13 +1252,13 @@ attr_store_read (FILE *fp, Pool *pool) s->keys[i].name = str2id (s->pool, localid2str (s, s->keys[i].name), 1); } - s->szschemata = 1 + read_id (fp, 0); + s->szschemata = read_id (fp, 0); s->nschemata = 0; s->schemata = xmalloc (((s->szschemata + SCHEMA_BLOCK) & ~SCHEMA_BLOCK) * sizeof (s->schemata[0])); s->schemaofs = 0; Id *ids = s->schemata; - add_elem (s->schemaofs, s->nschemata, 0, SCHEMA_BLOCK); - *ids++ = 0; + //add_elem (s->schemaofs, s->nschemata, 0, SCHEMA_BLOCK); + //*ids++ = 0; while (ids < s->schemata + s->szschemata) { add_elem (s->schemaofs, s->nschemata, ids - s->schemata, SCHEMA_BLOCK); -- 2.7.4