Browse Source

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 14 years ago
parent
commit
0498723223
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/entry.c

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

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