Procházet zdrojové kódy

Bug 688341 - (cov#10709) Fix Coverity code maintainability issues

The third argument to qsort() is incorrect.  We should be specifying
the size of "Slapi_Entry *", not "Slapi_Entry **".
Nathan Kinder před 14 roky
rodič
revize
72506b80ec
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      ldap/servers/slapd/entry.c

+ 1 - 1
ldap/servers/slapd/entry.c

@@ -3697,7 +3697,7 @@ slapi_entries_diff(Slapi_Entry **old_entries, Slapi_Entry **curr_entries,
     for (cep = curr_entries; cep != NULL && *cep != NULL; cep++)
         ;
 
-    qsort(curr_entries, cep - curr_entries, sizeof(Slapi_Entry **),
+    qsort(curr_entries, cep - curr_entries, sizeof(Slapi_Entry *),
           entry_cmp_with_dn);
 
 #ifdef ENTRY_DIFF_DEBUG