Pārlūkot izejas kodu

Bug 622903 - fix coverity Defect Type: Code maintainability issues

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

Comment:
Pointer "log_dir" returned by "dblayer_get_home_dir" is never used
(line 1492).  Removing the unnecessary else clause.
Noriko Hosoi 15 gadi atpakaļ
vecāks
revīzija
6aa107ecf2
1 mainītis faili ar 0 papildinājumiem un 5 dzēšanām
  1. 0 5
      ldap/servers/slapd/back-ldbm/dblayer.c

+ 0 - 5
ldap/servers/slapd/back-ldbm/dblayer.c

@@ -1486,11 +1486,6 @@ int dblayer_start(struct ldbminfo *li, int dbmode)
             return return_value;
         }
     }
-    else
-    {
-        /* using the home dir for the log dir, which is already checked */
-        log_dir = dblayer_get_home_dir(li, NULL);
-    }
 
     /* Sanity check on cache size on platforms which allow us to figure out
      * the available phys mem */