summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorshylesh kumar <shylesh@gluster.com>2012-03-28 10:50:06 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-28 02:59:51 -0700
commitbfb6366bd2a6de4cb5322dda72fbc1e6ad1edc41 (patch)
treef4ff7238cce6769300c1b94c382d6e351491d4c9 /xlators
parentb8c4da2ce0326d5c1a3303d4c3931e60b40e9bdc (diff)
cluster/stripe- do not ref if dict is null
Change-Id: Ifa4a5253482d837e2583de078e908b8c442f9dca BUG: 807214 Signed-off-by: shylesh kumar <shylesh@gluster.com> Reviewed-on: http://review.gluster.com/3024 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/stripe/src/stripe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index aa65eb4fbce..73700ff925e 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -1122,7 +1122,9 @@ stripe_unlink (call_frame_t *frame, xlator_t *this, loc_t *loc,
local->op_ret = -1;
loc_copy (&local->loc, loc);
local->xflag = xflag;
- local->xdata = dict_ref (xdata);
+
+ if (xdata)
+ local->xdata = dict_ref (xdata);
frame->local = local;
local->call_count = priv->child_count;