From d1700d209431e19a2ecca43f644935533d705af1 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 29 Mar 2011 14:08:04 +0000 Subject: assign local to frame->local before checking for error conditions Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 2617 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2617 --- xlators/features/marker/src/marker-quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 8c4910a77..a4bac037e 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -192,6 +192,8 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this, quota_local_t *local = NULL; marker_conf_t *priv = NULL; + local = frame->local; + if (op_ret == -1) goto err; @@ -200,8 +202,6 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this, if (!dict) goto err; - local = frame->local; - ret = dict_get_bin (dict, QUOTA_SIZE_KEY, (void **) &size); if (!size) goto err; -- cgit