Sfoglia il codice sorgente

610281 - fix coverity Defect Type: Control flow issues

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

11843 DEADCODE Triaged Unassigned Bug Minor Fix Required
mm_init() ds/ldap/servers/slapd/tools/mmldif.c

Comment:
A variable tailorfile is not used.
Remove it.
Noriko Hosoi 15 anni fa
parent
commit
921e51777d
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      ldap/servers/slapd/tools/mmldif.c

+ 0 - 2
ldap/servers/slapd/tools/mmldif.c

@@ -639,7 +639,6 @@ int mm_init(int argc, char * argv[])
     int c;
     char *ofn = NULL;
     char *prog = argv[0];
-    char *tailorfile = NULL;
 
     time(&tl);
     seed = (char)tl;
@@ -712,7 +711,6 @@ int mm_init(int argc, char * argv[])
 
     hashmask = 0xfff;
     hashtable = (entry_t **)calloc(0x1000, sizeof(entry_t*));
-    if (tailorfile) free(tailorfile);
     return 0;
 }