summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-04-13 07:36:14 +0000
committerAnand Avati <avati@gluster.com>2011-04-13 06:29:00 -0700
commit9c46226f7a98e843b1c95ecdcf44830e05d5e1f5 (patch)
treefde1f7dc91ad0d8ae5b4d7e74130f70388d1a52d /xlators/cluster
parent41df71222e0d3975b8160d82a630d70ac15786be (diff)
PUMP: initialize loc at declaration
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2726 ([glusterfs-3.2.0qa11]: glusterfs server crashed due to stack overflow) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2726
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/pump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c
index c2f4a726a..c63011c81 100644
--- a/xlators/cluster/afr/src/pump.c
+++ b/xlators/cluster/afr/src/pump.c
@@ -220,7 +220,7 @@ pump_save_path (xlator_t *this, const char *path)
pump_private_t *pump_priv = NULL;
pump_state_t state;
dict_t *dict = NULL;
- loc_t loc;
+ loc_t loc = {0};
int dict_ret = 0;
int ret = -1;
@@ -580,7 +580,7 @@ pump_complete_migration (xlator_t *this)
pump_private_t *pump_priv = NULL;
dict_t *dict = NULL;
pump_state_t state;
- loc_t loc;
+ loc_t loc = {0};
int dict_ret = 0;
int ret = -1;
@@ -675,7 +675,7 @@ pump_task (void *data)
afr_private_t *priv = NULL;
- loc_t loc;
+ loc_t loc = {0};
struct iatt iatt, parent;
dict_t *xattr_rsp = NULL;
dict_t *xattr_req = NULL;
@@ -853,7 +853,7 @@ pump_initiate_sink_connect (call_frame_t *frame, xlator_t *this)
afr_private_t *priv = NULL;
dict_t *dict = NULL;
char *dst_brick = NULL;
- loc_t loc;
+ loc_t loc = {0};
int ret = 0;
@@ -1066,7 +1066,7 @@ pump_execute_start (call_frame_t *frame, xlator_t *this)
afr_local_t *local = NULL;
int ret = 0;
- loc_t loc;
+ loc_t loc = {0};
priv = this->private;
local = frame->local;