dougm 01/08/10 11:56:07
Modified: include apr_buckets.h
Log:
fix variable scope issue; POST now working fine with both ssl and without
Revision Changes Path
1.111 +4 -2 apr-util/include/apr_buckets.h
Index: apr_buckets.h
===================================================================
RCS file: /home/cvs/apr-util/include/apr_buckets.h,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -r1.110 -r1.111
--- apr_buckets.h 2001/08/10 18:35:08 1.110
+++ apr_buckets.h 2001/08/10 18:56:07 1.111
@@ -520,8 +520,9 @@
* @param b The bucket brigade
*/
#define APR_BRIGADE_NORMALIZE(b) \
+do { \
+ apr_bucket *e; \
do { \
- apr_bucket *e; \
e = APR_BRIGADE_FIRST(b); \
if (e->length == 0) { \
apr_bucket *d; \
@@ -530,7 +531,8 @@
e = d; \
} \
e = APR_BUCKET_NEXT(e); \
- } while (e != APR_BRIGADE_SENTINEL(b))
+ } while (!APR_BRIGADE_EMPTY(b) && (e != APR_BRIGADE_SENTINEL(b))); \
+} while (0)
/*
* General-purpose reference counting for the various bucket types.