From 17827defd6703298b68fee8fd08aef69ab0e2866 Mon Sep 17 00:00:00 2001 From: Nandaja Varma Date: Mon, 9 Feb 2015 17:39:20 +0530 Subject: snapview: Fixing the coverity issues Coverity CIDs: 1228601 1220056 1238185 1257624 Change-Id: Idb4cc3b44bc3ccb8b497ce355e1e3bacfb176db9 BUG: 789278 Signed-off-by: Nandaja Varma Reviewed-on: http://review.gluster.org/9615 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/snapview-client/src/snapview-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/snapview-client') 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, -- cgit