summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sqfs/write_xattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqfs/write_xattr.c b/lib/sqfs/write_xattr.c
index 712c6e9..98829e8 100644
--- a/lib/sqfs/write_xattr.c
+++ b/lib/sqfs/write_xattr.c
@@ -48,7 +48,6 @@ bool sqfs_has_xattr(const char *key)
static int write_key(meta_writer_t *mw, const char *key, tree_xattr_t *xattr,
bool value_is_ool)
{
- const char *orig_key = key;
sqfs_xattr_entry_t kent;
int type;
@@ -73,7 +72,7 @@ static int write_key(meta_writer_t *mw, const char *key, tree_xattr_t *xattr,
if (meta_writer_append(mw, key, strlen(key)))
return -1;
- xattr->size += sizeof(sqfs_xattr_entry_t) + strlen(orig_key);
+ xattr->size += sizeof(sqfs_xattr_entry_t) + strlen(key);
return 0;
}