summaryrefslogtreecommitdiffstats
path: root/xlators/features/snapview-client
diff options
context:
space:
mode:
authorNandaja Varma <nandaja.varma@gmail.com>2015-02-09 17:39:20 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-04 11:00:47 -0700
commit17827defd6703298b68fee8fd08aef69ab0e2866 (patch)
tree78700cb09a37ea608697f4e963927aa3e2d8378d /xlators/features/snapview-client
parentd2ada381fe332b6151d12d3ef1d1e47f9f7c77f7 (diff)
snapview: Fixing the coverity issues
Coverity CIDs: 1228601 1220056 1238185 1257624 Change-Id: Idb4cc3b44bc3ccb8b497ce355e1e3bacfb176db9 BUG: 789278 Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com> Reviewed-on: http://review.gluster.org/9615 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/snapview-client')
-rw-r--r--xlators/features/snapview-client/src/snapview-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/snapview-client/src/snapview-client.c b/xlators/features/snapview-client/src/snapview-client.c
index 0b706919924..8351922af24 100644
--- a/xlators/features/snapview-client/src/snapview-client.c
+++ b/xlators/features/snapview-client/src/snapview-client.c
@@ -1773,7 +1773,8 @@ svc_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
if (ret)
gf_log (this->name, GF_LOG_ERROR, "failed to set inode "
"context");
- svc_fd->last_offset = entry->d_off;
+ if (svc_fd)
+ svc_fd->last_offset = entry->d_off;
}
unwind = svc_readdir_on_special_dir (frame, cookie, this, op_ret,