diff options
| author | Lalatendu Mohanty <lmohanty@redhat.com> | 2014-01-14 23:50:51 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2014-01-18 08:47:17 -0800 | 
| commit | 1ffc3ac9639e25c91ac26488b648d5523becb08e (patch) | |
| tree | 4152fc4ee17f3c535ec3b8fcc8b384538c333d38 /xlators | |
| parent | 63638748d744377d899e9ee0b5e7831d7c1c2496 (diff) | |
core: Coverity issue "Use of uninitialized scalar variable"
Issue:
1. In "unlink (export_path)" "export_path" might contain an arbitrary value left from earlier
 computations.
2. In "(msg[0] != '\0')"  msg might contain an arbitrary value
Change-Id: Icca8f557fd6b5e046dff1d5a84a72061975868d0
BUG: 789278
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
Reviewed-on: http://review.gluster.org/6701
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index db9f39c7c05..85a53730602 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -923,7 +923,7 @@ glusterd_op_stage_start_volume (dict_t *dict, char **op_errstr)          gf_boolean_t                            exists = _gf_false;          glusterd_volinfo_t                      *volinfo = NULL;          glusterd_brickinfo_t                    *brickinfo = NULL; -        char                                    msg[2048]; +        char                                    msg[2048] = {0,};          glusterd_conf_t                         *priv = NULL;          xlator_t                                *this = NULL;          uuid_t                                  volume_id = {0,};  | 
