dovecot-2.2: DEBUG: Call buffer_verify_pool() on str_c*()
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 5 01:14:36 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/a7a45a56211c
changeset: 15572:a7a45a56211c
user: Timo Sirainen <tss at iki.fi>
date: Fri Jan 04 03:50:35 2013 +0200
description:
DEBUG: Call buffer_verify_pool() on str_c*()
diffstat:
src/lib/str.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 9fda4feb6e2d -r a7a45a56211c src/lib/str.c
--- a/src/lib/str.c Fri Jan 04 03:50:18 2013 +0200
+++ b/src/lib/str.c Fri Jan 04 03:50:35 2013 +0200
@@ -45,6 +45,9 @@
size_t len = str_len(str);
size_t alloc = buffer_get_size(str);
+#ifdef DEBUG
+ buffer_verify_pool(str);
+#endif
if (len == alloc || data[len] != '\0') {
buffer_write(str, len, "", 1);
/* remove the \0 - we don't want to keep it */
More information about the dovecot-cvs
mailing list