aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/xattr/xattr_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/xattr/xattr_writer.c')
-rw-r--r--lib/sqfs/xattr/xattr_writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqfs/xattr/xattr_writer.c b/lib/sqfs/xattr/xattr_writer.c
index c33d366..c04bd4a 100644
--- a/lib/sqfs/xattr/xattr_writer.c
+++ b/lib/sqfs/xattr/xattr_writer.c
@@ -89,6 +89,9 @@ sqfs_xattr_writer_t *sqfs_xattr_writer_create(sqfs_u32 flags)
return NULL;
xwr = calloc(1, sizeof(*xwr));
+ if (xwr == NULL)
+ return NULL;
+
if (str_table_init(&xwr->keys, XATTR_KEY_BUCKETS))
goto fail_keys;