aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-06 19:18:09 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-06 19:18:09 +0000
commitfbe6f640e6f22fd4faf1a39fa672bbe36e27bda8 (patch)
tree6822c0d046f296195cbb5e38963b802955ed868b /src
parentUse debug versions of malloc(), realloc() and calloc(). (diff)
downloadsandbox-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.c10
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);
}
}