--- a/servlib/bundling/BPQBlock.cc Mon Aug 15 12:35:59 2011 +0100
+++ b/servlib/bundling/BPQBlock.cc Mon Aug 15 13:42:11 2011 +0100
@@ -211,11 +211,13 @@
u_int len = block->data_length();
log_debug_p(LOG, "BPQBlock::initialise: len = %u", len);
u_int num_frags;
+ ASSERT ( block->data() != NULL );
u_char* buf = block->data();
- log_debug_p(LOG, "BPQBlock::initialise: buf = %s", buf);
+ //log_debug_p(LOG, "BPQBlock::initialise: buf = %s", buf);
// BPQ-kind 1-byte
if ( i < len ) {
+ ASSERT ( buf[i] == 0 || buf[i] == 1 );
kind_ = (kind_t) buf[i++];
log_debug_p(LOG, "BPQBlock::initialise: kind = %d", kind_);
}