diff options
author | Amar Tumballi <amarts@redhat.com> | 2019-05-20 11:11:39 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-04 10:30:29 +0000 |
commit | e7aeab3063ac5645136303278b477d7de35266c0 (patch) | |
tree | 73ab2e1ea4e26b1019318178d114c3d89dc34301 /xlators/features/locks | |
parent | abc4d4cfa01d922c46ebb1abfa5d801ba8c6b5c8 (diff) |
across: clang-scan: fix NULL dereferencing warnings
All these checks are done after analyzing clang-scan report produced
by the CI job @ https://build.gluster.org/job/clang-scan
updates: bz#1622665
Change-Id: I590305af4ceb779be952974b2a36066ffc4865ca
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/features/locks')
-rw-r--r-- | xlators/features/locks/src/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 24422b494b9..ad1ce6c604d 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -1274,7 +1274,7 @@ pl_local_init(call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd) return -1; } - local->inode = (fd ? inode_ref(fd->inode) : inode_ref(loc->inode)); + local->inode = (loc ? inode_ref(loc->inode) : inode_ref(fd->inode)); frame->local = local; } |