[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 3 12:01:07 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=789278



--- Comment #1109 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18605 committed in master by  

------------- glusterd/mgmt: coverity fixes

This patch fixes coverity issues 179, 59.

Problem: control flow won't enter into if block as volname is always
NULL and return value of function synctask_barrier_init is unchecked.

Fix: remove condition checking which is always resulting in false,
and removing if block which is always unreachable. As a result of
removal of condition checking volname became a unused variable,
so remove declaration of volname.

assign return valur of synctask_barrier_init to ret, if it nonzero
value goto out.

Change-Id: I870aeb020034e97a761e9314f7ace7573f7c520c
BUG: 789278
Signed-off-by: Sanju Rakonde <srakonde at redhat.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list