summaryrefslogtreecommitdiffstats
path: root/xlators/experimental
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-02-19 14:51:27 +0100
committerShyamsundar Ranganathan <srangana@redhat.com>2017-02-20 18:32:58 -0500
commit6b42f96d148f0bf36149346196edf5d42bf74941 (patch)
tree9c17abfc0f307b8f74d3ad565f889d51d95f8ded /xlators/experimental
parent4a1740d3e8fbccc18772c0fc5f70f2cd7443d51e (diff)
Initialize path, since coverty detect a code path where
we do a free on a unitialized pointer (if jbr_get_changelog_dir fail). Change-Id: Ib68122bb9eddaeb422028f834856a0776ecbb789 BUG: 1424791 Signed-off-by: Michael Scherer <misc@redhat.com> Reviewed-on: https://review.gluster.org/16670 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Tested-by: Nigel Babu <nigelb@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/experimental')
-rw-r--r--xlators/experimental/jbr-server/src/jbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/experimental/jbr-server/src/jbr.c b/xlators/experimental/jbr-server/src/jbr.c
index c3f0344df00..3261319bd55 100644
--- a/xlators/experimental/jbr-server/src/jbr.c
+++ b/xlators/experimental/jbr-server/src/jbr.c
@@ -1179,7 +1179,7 @@ jbr_open_term (call_frame_t *frame, xlator_t *this, dict_t *xdata)
int32_t op_errno;
char *cl_dir;
char *term;
- char *path;
+ char *path = NULL;
jbr_private_t *priv = this->private;
op_errno = jbr_get_changelog_dir(this, &cl_dir);