diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-07 01:14:13 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-07 01:18:03 +0100 |
commit | 257a5737d708b706be29526050f61ded9793d0ab (patch) | |
tree | b7b5789e63a85187c0cbffb965c9c7233bb26249 /lib/sqfs/xattr/xattr_writer_flush.c | |
parent | 5cc1d55d769e278f51eeb057b08d04afd6bb0c44 (diff) |
Rewrite the str_table to internally use the more opimized hash_table
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/xattr/xattr_writer_flush.c')
-rw-r--r-- | lib/sqfs/xattr/xattr_writer_flush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/xattr/xattr_writer_flush.c b/lib/sqfs/xattr/xattr_writer_flush.c index 85ec724..98d2619 100644 --- a/lib/sqfs/xattr/xattr_writer_flush.c +++ b/lib/sqfs/xattr/xattr_writer_flush.c @@ -200,11 +200,11 @@ static int write_kv_pairs(const sqfs_xattr_writer_t *xwr, size_t i; ool_locations = alloc_array(sizeof(ool_locations[0]), - xwr->values.num_strings); + str_table_count(&xwr->values)); if (ool_locations == NULL) return SQFS_ERROR_ALLOC; - for (i = 0; i < xwr->values.num_strings; ++i) + for (i = 0; i < str_table_count(&xwr->values); ++i) ool_locations[i] = 0xFFFFFFFFFFFFFFFFUL; for (blk = xwr->kv_block_first; blk != NULL; blk = blk->next) { |