summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/format.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/format.c b/src/format.c
index 7c7eacb..aee0404 100644
--- a/src/format.c
+++ b/src/format.c
@@ -211,8 +211,9 @@ format_add_sdn_list_maybe_sorted(struct slapi_dn ***list, const char *dn,
for (len = 0;
(list != NULL) && (*list != NULL) && ((*list)[len] != NULL);
len++) {
- /* If it's not sorted, we have to check every entry anyway, so
- * we might as well do it now. */
+ /* If it's not sorted (because the list is being used as a
+ * queue, which is pretty much always), we have to check every
+ * entry anyway, so we might as well do it now. */
if (!sorted && (slapi_sdn_compare((*list)[len], sdn) == 0)) {
slapi_sdn_free(&sdn);
return *list;