summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-04-12 04:16:09 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-12 19:18:12 +0530
commit3f1e93c29856ec1e75327525899d1f0d6a81c0a3 (patch)
treef58d72bec62253b601d59c4cc89ea7836016f0f6
parentecead44b5c8d1215e7c398ca1132a4b0b11a44bb (diff)
minor initialization bug fix in quota's build_loc
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--xlators/features/quota/src/quota.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index a8a0d014fae..94a7ec83b25 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -74,6 +74,7 @@ quota_statvfs_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
static void
build_root_loc (xlator_t *this, loc_t *loc)
{
+ memset (loc, 0, sizeof (*loc));
loc->path = "/";
}