summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorShwetha Acharya <shwetha174@gmail.com>2018-08-03 15:12:45 +0530
committerAmar Tumballi <amarts@redhat.com>2018-08-20 12:18:13 +0000
commit73c1d19584c30c4635fc8fa15bfd51cedddab5e0 (patch)
treebb0bed08cae2f298d58e8ce5a387af78ff0982f0 /xlators
parent22a5ecf6906a24883b953c5b4ae37bc30be40dba (diff)
marker: FORWARD_NULL coverity fix
Problem: Coverity false positive. Solution: Added a comment to ignore the false positive. CID: 1325591 BUG: 789278 Change-Id: I95037efd12c059efcfc04f3c4c13f60c530150b4 Signed-off-by: Shwetha Acharya <shwetha174@gmail.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/src/marker-quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 06ba0820a54..42c23403ce7 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -2129,7 +2129,7 @@ mq_xattr_state (xlator_t *this, loc_t *origin_loc, dict_t *dict,
}
}
- if (buf.ia_type == IA_IFDIR)
+ if (buf.ia_type == IA_IFDIR || loc_is_root(&loc))
mq_inspect_directory_xattr (this, ctx, contribution, &loc, dict,
buf);
else