dovecot-2.2: lib-storage: Added assert.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 26 22:41:48 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/11d61991a525
changeset: 16120:11d61991a525
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 26 22:41:43 2013 +0200
description:
lib-storage: Added assert.
diffstat:
src/lib-storage/mail.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r d7893c4460c3 -r 11d61991a525 src/lib-storage/mail.c
--- a/src/lib-storage/mail.c Tue Mar 26 22:41:32 2013 +0200
+++ b/src/lib-storage/mail.c Tue Mar 26 22:41:43 2013 +0200
@@ -266,7 +266,10 @@
{
struct mail_private *p = (struct mail_private *)mail;
- return p->v.get_special(mail, field, value_r);
+ if (p->v.get_special(mail, field, value_r) < 0)
+ return -1;
+ i_assert(*value_r != NULL);
+ return 0;
}
struct mail *mail_get_real_mail(struct mail *mail)
More information about the dovecot-cvs
mailing list