[prev in list] [next in list] [prev in thread] [next in thread]
List: apr-cvs
Subject: cvs commit: apr/tables apr_tables.c
From: brianp () apache ! org
Date: 2003-06-24 6:56:41
[Download RAW message or body]
brianp 2003/06/23 23:56:40
Modified: tables apr_tables.c
Log:
fixed the removal of duplicate key values in apr_table_compress() where one key has \
more than two values
Revision Changes Path
1.50 +4 -3 apr/tables/apr_tables.c
Index: apr_tables.c
===================================================================
RCS file: /home/cvs/apr/tables/apr_tables.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- apr_tables.c 24 Jun 2003 05:40:19 -0000 1.49
+++ apr_tables.c 24 Jun 2003 06:56:40 -0000 1.50
@@ -1,3 +1,4 @@
+#include <stdio.h>
/* ====================================================================
* The Apache Software License, Version 1.1
*
@@ -1127,8 +1128,8 @@
dups_found = 0;
sort_next = sort_array;
sort_end = sort_array + t->a.nelts;
- last = sort_next;
- while (++sort_next < sort_end) {
+ last = sort_next++;
+ while (sort_next < sort_end) {
if (((*sort_next)->key_checksum == (*last)->key_checksum) &&
!strcasecmp((*sort_next)->key, (*last)->key)) {
apr_table_entry_t **dup_last = sort_next + 1;
@@ -1176,7 +1177,7 @@
} while (++sort_next <= dup_last);
}
else {
- last = sort_next;
+ last = sort_next++;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic