diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2006-07-06 19:18:09 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2006-07-06 19:18:09 +0000 |
commit | fbe6f640e6f22fd4faf1a39fa672bbe36e27bda8 (patch) | |
tree | 6822c0d046f296195cbb5e38963b802955ed868b /src | |
parent | Use debug versions of malloc(), realloc() and calloc(). (diff) | |
download | sandbox-fbe6f640e6f22fd4faf1a39fa672bbe36e27bda8.tar.gz sandbox-fbe6f640e6f22fd4faf1a39fa672bbe36e27bda8.tar.bz2 sandbox-fbe6f640e6f22fd4faf1a39fa672bbe36e27bda8.zip |
Remove uneeded test, as setenv(,,0) do not replace.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sandbox.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sandbox.c b/src/sandbox.c index df9949b..e7224a1 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -271,12 +271,10 @@ void sandbox_set_env_var(const char *env_var) /* We check if the variable is set in the environment, and if not, we * get it from sandbox.conf, and if they exist, we just add them to the * environment if not already present. */ - if (NULL == getenv(env_var)) { - config = rc_get_cnf_entry(SANDBOX_CONF_FILE, env_var, NULL); - if (NULL != config) { - setenv(ENV_SANDBOX_VERBOSE, config, 0); - free(config); - } + config = rc_get_cnf_entry(SANDBOX_CONF_FILE, env_var, NULL); + if (NULL != config) { + setenv(ENV_SANDBOX_VERBOSE, config, 0); + free(config); } } |