From 408a2b029824a3915ce094aed520061e80c078c8 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Sun, 27 Mar 2011 14:03:10 +0000 Subject: check the local for NULL before accessing it Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 2592 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2592 --- xlators/features/marker/src/marker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 044feeae747..3a43ffdf453 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -846,12 +846,12 @@ marker_rename_cbk (call_frame_t *frame, void *cookie, xlator_t *this, STACK_UNWIND_STRICT (rename, frame, op_ret, op_errno, buf, preoldparent, postoldparent, prenewparent, postnewparent); - oplocal = local->oplocal; - local->oplocal = NULL; - if (op_ret == -1 || local == NULL) goto out; + oplocal = local->oplocal; + local->oplocal = NULL; + priv = this->private; if (priv->feature_enabled & GF_QUOTA) { -- cgit