svn commit: samba r16936 - in
branches/SAMBA_4_0/source/lib/ldb/common: .
abartlet at samba.org
abartlet at samba.org
Tue Jul 11 03:44:52 GMT 2006
Author: abartlet
Date: 2006-07-11 03:44:51 +0000 (Tue, 11 Jul 2006)
New Revision: 16936
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16936
Log:
Correct comment in this comparison function
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c 2006-07-11 03:14:59 UTC (rev 16935)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c 2006-07-11 03:44:51 UTC (rev 16936)
@@ -493,11 +493,11 @@
if (base == NULL || base->comp_num == 0) return 0;
if (dn == NULL || dn->comp_num == 0) return -1;
+ /* if the base has more componts than the dn, then they differ */
if (base->comp_num > dn->comp_num) {
return (dn->comp_num - base->comp_num);
}
- /* if the number of components doesn't match they differ */
n0 = base->comp_num - 1;
n1 = dn->comp_num - 1;
while (n0 >= 0 && n1 >= 0) {
More information about the samba-cvs
mailing list