env-util.c revision ec283ec7c45dcb0c7ae276203f4ba61570f8733a
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "env-util.h"
#include <stdlib.h>
{
2048);
}
}
void env_clean(void)
{
#ifdef HAVE_CLEARENV
if (clearenv() < 0)
i_fatal("clearenv() failed");
#else
extern char **environ;
/* Try to clear the environment. It should always be non-NULL, but
apparently it's not on some ancient OSes (Ultrix), so just keep
the check. The clearing also fails on FreeBSD 7.0 (currently). */
#endif
/* don't clear the env_pool, otherwise the environment would get
corrupted if we failed to clear it. */
}