dovecot-1.1: dict: Added assert to make sure username is never N...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 2 22:10:33 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/04cb8f657b65
changeset: 7601:04cb8f657b65
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 02 22:10:11 2008 +0300
description:
dict: Added assert to make sure username is never NULL.
diffstat:
1 file changed, 2 insertions(+)
src/lib-dict/dict.c | 2 ++
diffs (12 lines):
diff -r 09f98612f10d -r 04cb8f657b65 src/lib-dict/dict.c
--- a/src/lib-dict/dict.c Mon Jun 02 22:08:58 2008 +0300
+++ b/src/lib-dict/dict.c Mon Jun 02 22:10:11 2008 +0300
@@ -56,6 +56,8 @@ struct dict *dict_init(const char *uri,
{
struct dict *dict;
const char *p, *name;
+
+ i_assert(username != NULL);
p = strchr(uri, ':');
if (p == NULL) {
More information about the dovecot-cvs
mailing list