summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/uiduniq
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-07-02 17:46:13 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-07-23 13:35:34 -0700
commitd1946d8f5c1e2f318587c06ecd4016f9b9027783 (patch)
tree5b48e084cb94102801eba27fc69144a57c64365e /ldap/servers/plugins/uiduniq
parent9533a4085bd1b5d462e322e366e470218f2b03b1 (diff)
downloadds-d1946d8f5c1e2f318587c06ecd4016f9b9027783.tar.gz
ds-d1946d8f5c1e2f318587c06ecd4016f9b9027783.tar.xz
ds-d1946d8f5c1e2f318587c06ecd4016f9b9027783.zip
610281 - fix coverity Defect Type: Control flow issues
https://bugzilla.redhat.com/show_bug.cgi?id=610281 11817 DEADCODE Triaged Unassigned Bug Moderate Fix Required NSUniqueAttr_Init() ds/ldap/servers/plugins/uiduniq/uid.c Comment: NSUniqueAttr_Init declared err twice. One at the top and another in BEGIN - END (do - while loop). The second err in the do - while loop is trashed when it gets out of the loop. Regardless of the result in the do - while loop, err = 0 (success) was returned to the caller. We are removing the second err in the BEGIN (== do - while) scope. 945 int err;
Diffstat (limited to 'ldap/servers/plugins/uiduniq')
-rw-r--r--ldap/servers/plugins/uiduniq/uid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ldap/servers/plugins/uiduniq/uid.c b/ldap/servers/plugins/uiduniq/uid.c
index 64b5b144..de7310fe 100644
--- a/ldap/servers/plugins/uiduniq/uid.c
+++ b/ldap/servers/plugins/uiduniq/uid.c
@@ -942,7 +942,6 @@ NSUniqueAttr_Init(Slapi_PBlock *pb)
int err = 0;
BEGIN
- int err;
int argc;
char **argv;