dovecot: Added assert against empty keyword.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Sun Sep  2 05:03:47 EEST 2007
    
    
  
details:   http://hg.dovecot.org/dovecot/rev/e7f61751822e
changeset: 6350:e7f61751822e
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 02 05:03:41 2007 +0300
description:
Added assert against empty keyword.
diffstat:
1 file changed, 2 insertions(+)
src/lib-index/mail-index.c |    2 ++
diffs (12 lines):
diff -r 75c814287334 -r e7f61751822e src/lib-index/mail-index.c
--- a/src/lib-index/mail-index.c	Sun Sep 02 04:51:56 2007 +0300
+++ b/src/lib-index/mail-index.c	Sun Sep 02 05:03:41 2007 +0300
@@ -204,6 +204,8 @@ void mail_index_keyword_lookup_or_create
 {
 	char *keyword_dup;
 
+	i_assert(*keyword != '\0');
+
 	if (mail_index_keyword_lookup(index, keyword, idx_r))
 		return;
 
    
    
More information about the dovecot-cvs
mailing list