summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-dir-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-read.c')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index 384e9c98d0c..cd2055776d5 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -405,7 +405,7 @@ afr_filter_entries (gf_dirent_t *entries, fd_t *fd)
uint64_t ctx;
afr_fd_ctx_t *fd_ctx;
- off_t offset;
+ off_t offset = 0;
ret = fd_ctx_get (fd, THIS, &ctx);
if (ret < 0) {
@@ -513,8 +513,8 @@ afr_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int child_index = -1;
- uint64_t ctx;
- afr_fd_ctx_t *fd_ctx;
+ uint64_t ctx = 0;
+ afr_fd_ctx_t *fd_ctx = NULL;
off_t offset = 0;