dovecot-2.2-pigeonhole: lib-sieve: file storage: Added assert to...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Fri Oct 2 19:37:32 UTC 2015


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/357ac0a0e68b
changeset: 2114:357ac0a0e68b
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Fri Oct 02 21:37:28 2015 +0200
description:
lib-sieve: file storage: Added assert to make Coverity happier.

diffstat:

 src/lib-sieve/storage/file/sieve-file-storage.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 4e83dca6b75d -r 357ac0a0e68b src/lib-sieve/storage/file/sieve-file-storage.c
--- a/src/lib-sieve/storage/file/sieve-file-storage.c	Fri Oct 02 17:43:37 2015 +0200
+++ b/src/lib-sieve/storage/file/sieve-file-storage.c	Fri Oct 02 21:37:28 2015 +0200
@@ -377,6 +377,8 @@
 		storage_path = active_path;
 	}
 
+	i_assert(storage_path != NULL);
+
 	/* Prepare for write access */
 
 	if ( (storage->flags & SIEVE_STORAGE_FLAG_READWRITE) != 0 ) {


More information about the dovecot-cvs mailing list