summaryrefslogtreecommitdiff
path: root/lib/sqfshelper/xattr_reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfshelper/xattr_reader.c')
-rw-r--r--lib/sqfshelper/xattr_reader.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sqfshelper/xattr_reader.c b/lib/sqfshelper/xattr_reader.c
index a0dc6f6..376fdb2 100644
--- a/lib/sqfshelper/xattr_reader.c
+++ b/lib/sqfshelper/xattr_reader.c
@@ -24,12 +24,10 @@ static int restore_kv_pairs(sqfs_xattr_reader_t *xr, fstree_t *fs,
int ret;
for (i = 0; i < node->xattr->num_attr; ++i) {
- key = sqfs_xattr_reader_read_key(xr);
- if (key == NULL)
+ if (sqfs_xattr_reader_read_key(xr, &key))
return -1;
- val = sqfs_xattr_reader_read_value(xr, key);
- if (val == NULL)
+ if (sqfs_xattr_reader_read_value(xr, key, &val))
goto fail_key;
ret = str_table_get_index(&fs->xattr_keys,