diff options
author | James Bowes <jbowes@redhat.com> | 2008-06-23 14:51:56 -0400 |
---|---|---|
committer | James Bowes <jbowes@redhat.com> | 2008-06-23 14:51:56 -0400 |
commit | 24d26c44455074dab13e5f20de9ca0a23b62edb7 (patch) | |
tree | 3a9342fd74e8157008feab32000c8a3471e296eb /librazor | |
parent | 1c08e4250944048d5eedcb8eb5553aaa3e232ec6 (diff) |
Actually store the files strings in the files string pool
Diffstat (limited to 'librazor')
-rw-r--r-- | librazor/importer.c | 7 | ||||
-rw-r--r-- | librazor/razor.c | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/librazor/importer.c b/librazor/importer.c index e2da1b7..ec96c2e 100644 --- a/librazor/importer.c +++ b/librazor/importer.c @@ -314,7 +314,7 @@ build_file_tree(struct razor_importer *importer) compare_filenames, NULL); - root.name = hashtable_tokenize(&importer->table, ""); + root.name = hashtable_tokenize(&importer->file_table, ""); array_init(&root.files); array_init(&root.packages); root.last = NULL; @@ -334,7 +334,8 @@ build_file_tree(struct razor_importer *importer) length = end - f; memcpy(dirname, f, length); dirname[length] ='\0'; - name = hashtable_tokenize(&importer->table, dirname); + name = hashtable_tokenize(&importer->file_table, + dirname); if (d->last == NULL || d->last->name != name) { d->last = array_add(&d->files, sizeof *d); d->last->name = name; @@ -501,6 +502,8 @@ razor_importer_finish(struct razor_importer *importer) set = importer->set; hashtable_release(&importer->table); + hashtable_release(&importer->details_table); + hashtable_release(&importer->file_table); free(importer); return set; diff --git a/librazor/razor.c b/librazor/razor.c index 74f051e..7b5094d 100644 --- a/librazor/razor.c +++ b/librazor/razor.c @@ -400,7 +400,7 @@ razor_set_find_entry(struct razor_set *set, struct razor_entry *dir, const char *pattern) { struct razor_entry *e; - const char *n, *pool = set->string_pool.data; + const char *n, *pool = set->file_string_pool.data; int len; e = (struct razor_entry *) set->files.data + dir->start; |