瀏覽代碼

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 年之前
父節點
當前提交
0498723223
共有 1 個文件被更改,包括 1 次插入1 次删除
  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