Browse Source

610281 - fix coverity Defect Type: Control flow issues

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

11816 DEADCODE Triaged Unassigned Bug Moderate Fix Required
NS7bitAttr_Init() ds/ldap/servers/plugins/uiduniq/7bit.c

Comment:
NS7bitAttr_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.
692 int err;
Noriko Hosoi 15 years ago
parent
commit
9533a4085b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      ldap/servers/plugins/uiduniq/7bit.c

+ 0 - 1
ldap/servers/plugins/uiduniq/7bit.c

@@ -689,7 +689,6 @@ NS7bitAttr_Init(Slapi_PBlock *pb)
   int err = 0;
 
   BEGIN
-    int err;
     int argc;
     char **argv;