changeset 7786:8f6fa7aa0236 HEAD

Added assert
author Timo Sirainen <tss@iki.fi>
date Tue, 13 May 2008 02:00:28 +0300
parents 5046f47f273b
children ad51fc17da67
files src/lib-index/mail-hash.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-hash.c	Fri May 09 23:47:44 2008 +0300
+++ b/src/lib-index/mail-hash.c	Tue May 13 02:00:28 2008 +0300
@@ -187,6 +187,8 @@
 	hash->in_memory = MAIL_INDEX_IS_IN_MEMORY(index) || suffix == NULL;
 	hash->filepath = hash->in_memory ? i_strdup("(in-memory hash)") :
 		i_strconcat(index->filepath, suffix, NULL);
+	i_assert(hash->filepath != NULL);
+
 	hash->suffix = i_strdup(suffix);
 	hash->record_size = record_size;
 	hash->fd = -1;