diff src/lib-storage/index/dbox-single/sdbox-file.c @ 20215:389c5094c2a8

lib-dcrypt: Initial implementation
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Wed, 27 Apr 2016 14:08:00 +0300
parents 932a63ff512e
children 0fd0fb05e2b3
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-single/sdbox-file.c	Mon May 30 14:45:09 2016 +0300
+++ b/src/lib-storage/index/dbox-single/sdbox-file.c	Wed Apr 27 14:08:00 2016 +0300
@@ -311,6 +311,9 @@
 	}
 
 	dest_path = !alt_path ? file->primary_path : file->alt_path;
+
+	i_assert(dest_path != NULL);
+
 	p = strrchr(dest_path, '/');
 	i_assert(p != NULL);
 	dest_dir = t_strdup_until(dest_path, p);