summaryrefslogtreecommitdiffstats
path: root/xlators/features/read-only/src/read-only.c
diff options
context:
space:
mode:
authorkarthik-us <ksubrahm@redhat.com>2017-11-30 18:39:58 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-12-07 15:15:15 +0000
commitd9e9e76188b839447de1d7bdf415a820f13b971b (patch)
treeb737a3a570eca521efe90c926ca32bad1622a106 /xlators/features/read-only/src/read-only.c
parent47d01546a1826dc14a8331ea8700015f1cfdc4db (diff)
features/read-only: Coverity fixes
Warning File Function NEGATIVE_RETURNS worm.c worm_writev RESOURCE_LEAK worm.c init read-only.c init Note: COPY_PASTE_ERROR in worm_setattr & worm_fsetattr are false alarms. Change-Id: Iba1b0c18137a8797d7d04502acc87f0b307e1a1c BUG: 789278 Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'xlators/features/read-only/src/read-only.c')
-rw-r--r--xlators/features/read-only/src/read-only.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/read-only/src/read-only.c b/xlators/features/read-only/src/read-only.c
index d72b2c8fd2b..207b2b1a1d6 100644
--- a/xlators/features/read-only/src/read-only.c
+++ b/xlators/features/read-only/src/read-only.c
@@ -46,9 +46,10 @@ init (xlator_t *this)
if (!priv)
goto out;
+ this->private = priv;
+
GF_OPTION_INIT ("read-only", priv->readonly_or_worm_enabled, bool, out);
- this->private = priv;
ret = 0;
out:
return ret;