Hi,
This patch fixes trunk build when SERF_DEBUG_BUCKET_USE is defined.
The issue is caused by a typo in the pump_cleanup() function at pump.c:38.
(Note that currently the test suite fails when this option is enabled, but
that requires separate fixes.)
Log message:
[[[
Unbreak build with defined SERF_DEBUG_BUCKET_USE.
* src/pump.c
(pump_cleanup): Fix typo when calling serf__bucket_drain().
Patch by: Evgeny Kotkov <evgeny.kotkov{_AT_}visualsvn.com>
]]]
Regards,
Evgeny Kotkov
Index: src/pump.c
===================================================================
--- src/pump.c (revision 1787257)
+++ src/pump.c (working copy)
@@ -35,7 +35,7 @@ static apr_status_t pump_cleanup(void *baton)
if (pump->ostream_head != NULL) {
#ifdef SERF_DEBUG_BUCKET_USE
- serf__bucket_drain(conn->ostream_head);
+ serf__bucket_drain(pump->ostream_head);
#endif
serf_bucket_destroy(pump->ostream_head);
pump->ostream_head = NULL;