summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-04-06 21:18:15 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-08 03:08:15 -0700
commit73739935f511e431a64232c9b737342c7ba859e7 (patch)
treebb5b3188b76c66c19cc65c437f958d50ef38f9c0
parente78fb59b75a455127c004dd751ebcc4af1b14124 (diff)
initialization fixes
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c6
-rw-r--r--xlators/storage/posix/src/posix.c2
2 files changed, 4 insertions, 4 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;
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 22e03304ff2..56023afb290 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -201,7 +201,7 @@ posix_scale_ia_ino (struct posix_private *priv, struct iatt *buf)
ino_t temp_ino = 0;
int r;
struct stat lstatbuf;
- struct iatt export_buf;
+ struct iatt export_buf = {0 ,};
for (i = 0; i < priv->num_devices_to_span; i++) {
if (buf->ia_dev == priv->st_device[i]) {