dovecot-2.0: Make static analyzer happier.

dovecot at dovecot.org dovecot at dovecot.org
Sat Jul 10 20:13:32 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/def45252ab48
changeset: 11776:def45252ab48
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jul 10 18:12:43 2010 +0100
description:
Make static analyzer happier.

diffstat:

 src/lib/process-title.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r d9d1272d99b7 -r def45252ab48 src/lib/process-title.c
--- a/src/lib/process-title.c	Sat Jul 10 18:11:55 2010 +0100
+++ b/src/lib/process-title.c	Sat Jul 10 18:12:43 2010 +0100
@@ -26,6 +26,8 @@
 	unsigned int i;
 	bool clear_env;
 
+	i_assert(env[0] != NULL);
+
 	/* find the last argv or environment string. it should always be the
 	   last string in environ, but don't rely on it. this is what openssh
 	   does, so hopefully it's safe enough. */


More information about the dovecot-cvs mailing list