dovecot-2.2: doveadm: Added assert.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 10 06:52:48 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/90a603209bad
changeset: 15620:90a603209bad
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 10 06:51:19 2013 +0200
description:
doveadm: Added assert.
diffstat:
src/doveadm/doveadm-print.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r b27245a6adde -r 90a603209bad src/doveadm/doveadm-print.c
--- a/src/doveadm/doveadm-print.c Wed Jan 09 11:03:43 2013 +0200
+++ b/src/doveadm/doveadm-print.c Thu Jan 10 06:51:19 2013 +0200
@@ -59,6 +59,7 @@
unsigned int count;
headers = array_get(&ctx->headers, &count);
+ i_assert(count > 0);
for (;;) {
if (ctx->header_idx == count)
ctx->header_idx = 0;
More information about the dovecot-cvs
mailing list