]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Make static analyzer happier.
authorTimo Sirainen <tss@iki.fi>
Sat, 10 Jul 2010 17:12:43 +0000 (18:12 +0100)
committerTimo Sirainen <tss@iki.fi>
Sat, 10 Jul 2010 17:12:43 +0000 (18:12 +0100)
src/lib/process-title.c

index ee7a933196a64084951ac4fb3a5edfed017e90a6..42e55ebaccee620f90d1954f3bceafb0271bfa89 100644 (file)
@@ -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. */