summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-inode-write.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2014-12-19 16:38:43 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2014-12-23 07:22:38 -0800
commit0299f7f0f7c4d8e5e7e04d8bc1787ecbee6dbe52 (patch)
treed810a1f0e17fa7707a0b5191f2604370c57b594e /xlators/cluster/afr/src/afr-inode-write.c
parent85427a23c238499137cbfaafdb7b6ad27f67506a (diff)
afr: coverity fixes
Some fixes for the 17th Dec 2014 run. https://scan6.coverity.com:8443/reports.htm#v31028/p10714/g31029 Change-Id: Ia4410ef87a56fffb61803d0a4e62369b058e1cfb BUG: 1176089 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/9314 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-inode-write.c')
-rw-r--r--xlators/cluster/afr/src/afr-inode-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c
index 0c3ba920937..0c96d069ae5 100644
--- a/xlators/cluster/afr/src/afr-inode-write.c
+++ b/xlators/cluster/afr/src/afr-inode-write.c
@@ -648,7 +648,7 @@ afr_ftruncate (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
int op_errno = ENOMEM;
transaction_frame = copy_frame (frame);
- if (!frame)
+ if (!transaction_frame)
goto out;
local = AFR_FRAME_INIT (transaction_frame, op_errno);