Author: matz Date: Fri Dec 7 22:50:08 2007 New Revision: 8067 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8067&view=rev Log: Fiddling with writing without fiddling with reading of course won't work. :-/ Modified: trunk/sat-solver/tools/attr_store.c Modified: trunk/sat-solver/tools/attr_store.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/attr_store.c?rev=8067&r1=8066&r2=8067&view=diff ============================================================================== --- trunk/sat-solver/tools/attr_store.c (original) +++ trunk/sat-solver/tools/attr_store.c Fri Dec 7 22:50:08 2007 @@ -1252,13 +1252,13 @@ 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); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org