From: Timo Sirainen Date: Sat, 10 Jul 2010 17:12:43 +0000 (+0100) Subject: Make static analyzer happier. X-Git-Tag: 2.0.rc3~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c123fa87d89c012085e2f099d518b1c14eae5e9;p=thirdparty%2Fdovecot%2Fcore.git Make static analyzer happier. --- diff --git a/src/lib/process-title.c b/src/lib/process-title.c index ee7a933196..42e55ebacc 100644 --- a/src/lib/process-title.c +++ b/src/lib/process-title.c @@ -26,6 +26,8 @@ static void proctitle_hack_init(char *argv[], char *env[]) 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. */